Redirects are used to redirect a visitor from one path within your blog to a different URL. You can configure redirects in Settings → Redirects in the Console.
/path
. For
dynamic redirects, you can use regular expressions.With dynamic redirects, you can match a path dynamically using a pattern. This is useful when you
want to redirect multiple paths that follow a pattern to a single destination. For example, you
can redirect all requests starting with /author/
to an external site.
Here's how to create a dynamic redirect:
$1
.1. To redirect all requests starting with /author/
to an external site:
/author/(.*)
https://externalsite.com
2. To redirect all requests starting with /author/
to an external site, keeping the rest
of the path:
/author/(.*)
https://externalsite.com/$1
3. To redirect all requests starting with /author/
followed by another
/
to an external site, with some changes in the original structure of the path:
/author/([^/]+)/(.*)
https://externalsite.com/$1/somedirectory/$2
4. Redirect paths ending with /
to the same path without the trailing slash:
/(.*)/$
https://yourblog.com/$1
If you need help with regular expressions, feel free to contact support.