Dynamic Redirects
Overview
URL Redirect Manager supports placeholders for Target URL field. This placeholder will be replaced with a value from the Request URL.
%remover1%
This placeholder will be replaced with request url path, except for the first part.
For example, you set up a redirect rule.
Request URL: /test1/test2/test3
Target URL: /new/%remover1%
If user goes to /test1/test2/test3
, he will be redirected to /new/test2/test3
. The first part of the request URL is /test1
, so it will be removed.
%lastpart%
This placeholder will be replaced with the last part of request URL.
For example, you set up a redirect rule.
Request URL: /test1/test2/test3
Target URL: /new/%lastpart%
If user goes to /test1/test2/test3
, he will be redirected to /new/test3
. The last part of the request URL is /test3
.
Last updated