Skip to content

Overview

This page lets you select when a rule is going to run. Rules can be executed for all pages or for only a limited set of pages.

The rule will be executed without any condition, on all pages of the site.

The rule is entirely disabled and will never run. It is, however, preserved, and you can enable it back at any time.

The most powerful option: when you select it, more options will appear to let you define when the rule will run.

The simplest and most powerful. Enter the address of the page(s) where this rule should run.

In its simplest form, just enter an exact URL, relative to the site, such as /blog/a-new-seo-extension: the rule you are preparing will only run on that exact page.

Now it becomes more interesting when you start using the {*} and {?} wildcard characters.

  • {*} will match any string, from 1 to many characters
  • {?} will match any single character

With these special strings, rules can run on a very specific set of pages. Here are a few examples:

You also can make a single rule run for multiple pages, even if there is no common pattern where you can use wildcard characters, {*} and {?}.

This is done by listing these separate URLs, one per line. For instance, you can enter these various URLs where the rule should run:

4SEO setting up multiple URLs a rule should run on

and assuming the rule is a redirect, redirect all of them to /contact.

You can also ensure the rule will not run on some specific pages. Use the same format as for when setting pages the rule should run on:

  • you can enter multiple URLs to exclude
  • URLs to exclude can use wildcard characters ({*} and {?})
  • URLs to exclude can be regular expressions.

To decide whether this rule should run on the current page, 4SEO will compare the address of the page to your specification. When doing so, this setting will decide whether the query string (the part after the ?) should be dropped before comparing.

Assume you have decided the rule should run on page: /blog/a-new-seo-extension

  • If Disregard query string is Enabled, the rule will run for both /blog/a-new-seo-extension and /blog/a-new-seo-extension?fbclid=123465

  • If Disregard query string is Disabled, the rule will still run for /blog/a-new-seo-extension but not on /blog/a-new-seo-extension?fbclid=123465 as that query string is not part of your specification.

When comparing the address of the page to your specification, this setting decides whether uppercase and lowercase letters are considered different.

  • If Disregard case is Enabled, the rule will run for both /blog/a-new-seo-extension and /Blog/A-New-SEO-Extension
  • If Disregard case is Disabled, the rule will only run for an address written exactly as in your specification.

If your Joomla site can be reached at more than one address, for instance with several domains, use this setting to run the rule only when the page is requested at some of them. Enter one home address per line. Each must start with https:// or http:// and end with a slash, for instance https://www.example.com/ or https://www.example.com/sub-folder/.

Use Do not run for these home addresses to do the opposite: the rule will not run when the page is requested at one of the addresses on that list.

Directly select one or more of the Joomla languages you want this rule to run for.

Directly select one or more of the Joomla extensions you want this rule to run for.

After you selected one or more components to run the rule on, you can be more specific and only run the rule on some values of the view variable.

The `view` variable refers to what Joomla uses to decide how to display your content and is part of the non-SEF URL.

A non-SEF URL is in the form index.php?option=com_content&view=article&id=12 and is what Joomla uses internally to know what it should show on a page. The non-SEF URL is also what appears in the Link input field when you create a menu item.

You can enter multiple views, one per line. Leave that input field empty to allow all views.

Use this field to enter a list of views you do NOT want the rule to be triggered on. This will come in handy if you want the rule to trigger on all but one or two views for a component.

For instance, we may want a rule to run on all pages showing regular content except on the form view, which is for creating or editing an article.

Directly select one or more of the Joomla categories you want this rule to run for.

Directly select one or more of the Joomla categories you want this rule to not run for.

Select one or more Joomla user groups: the rule will only run when the page is requested by a user who belongs to one of them. This is handy for a rule that only logged-in users, or only your editors, should see.

Use Do not run for these user groups to do the opposite: the rule will not run for users who belong to one of the groups on that list.

Enter one or more IP addresses, one per line: the rule will only run on requests made from one of them. Both full v4 (12.34.56.78) and v6 (2e69:b3f1:d74f:6529:004e:dd80:2924:0f02) addresses can be used, as well as the {*} and {?} wildcard characters. This is handy to test a rule from your own computer before making it available to everyone.

Use Do not run for these IP addresses to do the opposite: the rule will not run on requests made from an address on that list.

Custom fields are a very powerful feature of Joomla 3 and more recent, which you can use to attach your own data to content items.

4SEO lets you trigger any rule based on the actual value of any custom field for the page being displayed.

This is done in 2 steps:

  • choose which custom field you want to use
  • tell 4SEO for which value of the custom field the rule should run

Custom field and value selector in 4SEO rule

You can instruct 4SEO to run this rule only after a specific date, until a specific date or between two dates.

Click and select a date in either field.

  • If you pick a date in both fields, the rule will run between those dates.
  • If you select only the first date, the rule will run after that date.
  • If you select only the second date, the rule will run until that date.