Mura Redirect

The new Mura Redirect plugin, which replaces the old NatSci Redirect Plugin, is used to manage redirections within Mura administration and keep usage statistics. It supports regular expressions.

Variables: $protocol (primary protocol), $domain (primary domain), $primary (primary protocol and domain)

Usage examples

  • Change a page path
    Path: /a/ Target: /b/
  • Change a path using a regular expression
    Path: /a/(.*) Path regular expression: checked Target: /b/\1
  • Redirect a domain to a specific path in the primary protocol and domain
    Domain: a.com Target: $primary/b
  • Redirect a domain to primary protocol and domain, preserving the path
    Domain: a.com Path: (.*) Path regular expression: checked Target: $primary\1
  • Redirect all other domains to primary protocol and domain, preserving the path
    Domain: ^(?!$domain) Domain regular expression: checked Path: (.*) Path regular expression: checked Target: $primary\1
  • Redirect to a different domain, preserving the protocol and the path
    Domain: a.com Path: (.*) Path regular expression: checked Target: //b.com\1
  • Redirect to primary domain, preserving the protocol and the path
    Domain: a.com Path: (.*) Path regular expression: checked Target: //$domain\1
  • Redirect to HTTPS, preserving the domain and the path
    Protocol: http Domain: (.*) Domain regular expression: checked Path: (.*) Path regular expression: checked Target: https://\1\2

Mura redirect source code is available on github.