How to set up origin and destination URL on redirects

Select the origin page for the redirect rule in question.

Select origin to associate to the rule

You can make a redirect on:

  • the whole website
  • a custom URL (regular expressions included)
  • pages
  • posts
  • product pages
  • category pages
  • tag pages

Users can either be redirected to any page of your site or to a custom URL.

In the latter case, you can use the placeholder %path%, which allows you to retrieve the origin URL dynamically.

Let’s make an example to better understand.

I want that all Italian users landing to mysite.com are redirected to mysite.com/it

I will set up my rule as follows:

  • Origin URL: entire website
  • Destination URL:  %path%/it (this way, we will simply add “/it” to the URL that has been dynamically retrieved through the placeholder)

Placeholder