Feature Request
-
This relates to manual redirects.
The Issue
When a manual redirect is set, many people might forget to add the trailing slash. This means the redirect fails when a referring link uses a trailing slash but the configured redirect does not; the same is true vice versa.
For example
example.com/apples is not the same as example.com/apples/
Likewise
example.com/apples/ is not the same as example.com/apples
When slug lacks a trailing slash the redirect only works when the link followed lacks the trailing slash.
When slug has a trailing slash the redirect only works when the link followed has the trailing slash.
When I set manual redirects I use the non trailing slash version of the redirected URL slug then add .? to the end of it (I know I could, probably should, use a a forward slash instead of a dot) and set the redirect as a regex.
Another option is to use two separate redirects: one with and one without the trailing slash.
The Request
Can you add a tick-box option to cover trailing slashes e.g. ‘This redirect should work whether there is or is not a trailing slash (yes/no)’ i.e /? or \/? (I’m not sure whether forward slashes need to be commented or not for 404 Solution).
Can you add a tick-box to cover the redirected slug and anything that might follow it e.g ‘This redirect should work for this slug and any extensions of this slug (yes/no)’ i.e .*? or .+? or \/?.*? etc.., whichever is less resource hungry.
I think this will be easier for people unfamiliar with regexes to understand.
Thank you for your great work on 404 Solution.
Lee
- The topic ‘Feature Request’ is closed to new replies.