Skip to content

Redirections management

Redirecting is the act of sending a request for a given page to another, on the same site or another one. 4SEO rules-based redirect system is very flexible and lets you create many redirects, very easily.

Start creating a redirect by going to the SEO Tools > Redirects page, then click on the New button in the toolbar.

Redirects configuration

To select which pages you want to redirect from, select With some conditions on the When to run tab of the rule creation page:

Sample condition to redirect a category to another

In this example, we have entered /old-category/{*} in the pages URL field. This will cause any request which URL starts with /old-category/ to be redirected.

This example triggers a redirect based on the URL but like all rules, you can also redirect based on the Joomla component or a category - or even only between 2 dates

Redirect types

You can specify a redirect code to be used when doing the redirect on the What to do tab:

Various redirect types available

In most cases, you should use the default: Permanent, which stands for permanent redirect and will use a 301 code for the redirect.

Other codes can be used in specific situations, when a redirect is only temporary for instance.

Google basically consider 301 and 302 codes equivalent in terms of passing signals

Redirect target

Finally, enter a specification for where 4SEO should redirect the requests this rule applies to:

Sample redirect target

This example will redirect any URL from /old-category/{*} to/new-category/{*}.

The {*} symbol means any number of any character. The end result is that for instance:

  • /old-category/post-one will be redirected to /new-category/post-one
  • /old-category/post-two will be redirected to /new-category/post-two
  • /old-category/post-three will be redirected to /new-category/post-three

This only works this way because we used the {*} symbol on both the source and target URL specification.

Redirect query string

This setting will decide whether the query string should be appended back to the target URL when doing a redirect.

A query string is the part in a URL after the ? symbol. For instance, in, the query string is var1=123&var2=345.

If enabled, any query string on the source redirect will be appended back after the redirect:

  • if enabled, /old-category/post-one?var1=123&var2=345 will be redirected to /new-category/post-one?var1=123&var2=345
  • if disabled, /old-category/post-one?var1=123&var2=345 will be redirected to /new-category/post-one