Here’s a great article on how to create different types of redirections with the Redirection plugin from WordPress.
To create a wildcard redirection you add the following:
^/(.*)$ or ^/page_name/.*$
That’ll forward the home URL (or page) and every following subdirectory accordingly.
To add a redirect regardless of whether the user adds a trailing slash or not, you add this:
[/]? so it’d look something like this: /relative-url[/]?
Here’s a good article explaining the trailing slashes:
https://bethsoderberg.com/blog/wordpress-redirection-plugin-and-trailing-slashes/
Have any questions or comments? Write them below!