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.
When to enable the rule
Section titled “When to enable the rule”On all pages
Section titled “On all pages”The rule will be executed without any condition, on all pages of the site.
Disable for now
Section titled “Disable for now”The rule is entirely disabled and will never run. It is, however, preserved, and you can enable it back at any time.
With some conditions
Section titled “With some conditions”The most powerful option: when you select it, more options will appear to let you define when the rule will run.
Run on this/these page(s)
Section titled “Run on this/these page(s)”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:
Setting up a rule for multiple pages
Section titled “Setting up a rule for multiple pages”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:

and assuming the rule is a redirect, redirect all of them to /contact.
Do NOT run on this/these page(s)
Section titled “Do NOT run on this/these page(s)”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.
Disregard query string
Section titled “Disregard query string”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 stringisEnabled, the rule will run for both/blog/a-new-seo-extensionand/blog/a-new-seo-extension?fbclid=123465 -
If
Disregard query stringisDisabled, the rule will still run for/blog/a-new-seo-extensionbut not on/blog/a-new-seo-extension?fbclid=123465as that query string is not part of your specification.
Disregard case
Section titled “Disregard case”When comparing the address of the page to your specification, this setting decides whether uppercase and lowercase letters are considered different.
- If
Disregard caseisEnabled, the rule will run for both/blog/a-new-seo-extensionand/Blog/A-New-SEO-Extension - If
Disregard caseisDisabled, the rule will only run for an address written exactly as in your specification.
Run for these home addresses (domains)
Section titled “Run for these home addresses (domains)”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.
Run for these languages
Section titled “Run for these languages”Directly select one or more of the Joomla languages you want this rule to run for.
Run for these components
Section titled “Run for these components”Directly select one or more of the Joomla extensions you want this rule to run for.
Run for these views
Section titled “Run for these views”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.
Do NOT run for these views
Section titled “Do NOT run for these 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.
Run for these categories
Section titled “Run for these categories”Directly select one or more of the Joomla categories you want this rule to run for.
Do not run for these categories
Section titled “Do not run for these categories”Directly select one or more of the Joomla categories you want this rule to not run for.
Run for these user groups
Section titled “Run for these user groups”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.
Run for these IP addresses
Section titled “Run for these IP addresses”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.
Run based on custom field value
Section titled “Run based on custom field value”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

Run rule between dates
Section titled “Run rule between dates”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.