Mura 7.1 plugin to manage redirections within Mura administration and keep usage statistics. Supports regular expressions.
Variables: $protocol
(primary protocol), $domain
(primary domain), $primary
(primary protocol and domain)
Mura adds a slash at the end of the URL if there is not one already.
To match, all source paths should end with a /
.
The trailing slash can be removed by using a regular expression,
for instance ^(.*)/
to capture all the path without the trailing slash.
These paths are exact, /a/b/
will not be affected.
Path: /a/
Target: /b/
Path: ^/a/(.*)
Path regular expression: checked
Target: /b/\1
Domain: a.com
Target: $primary/b
Domain: a.com
Path: ^(.*)
Path regular expression: checked
Target: $primary\1
Domain: ^(?!$domain)
Domain regular expression: checked
Path: ^(.*)
Path regular expression: checked
Target: $primary\1
Domain: a.com
Path: ^(.*)
Path regular expression: checked
Target: //b.com\1
Path: ^(/a.*)/
Path regular expression: checked
Target: https://b.com\1
Domain: a.com
Path: ^(.*)
Path regular expression: checked
Target: //$domain\1
Protocol: http
Domain: ^(.*)
Domain regular expression: checked
Path: ^(.*)
Path regular expression: checked
Target: https://\1\2