Make all URLS with or without “/” slash redirect to lowercase
-
Loving the Redirection plugin, but having some challenges. We are trying to redirect all version of the URL to lowercase.
For example, these paths,
/guests/
/guests
/Guests
/GUESts
should all redirect to
https://elijahstre1stg.wpenginepowered.com/guests/However, achieving this seems like a real moving target – every time I think I’ve gotten this tested and working, I try it again and its not working. Sometimes it doesn’t work and gives me a white page that says “This page isn’t working”. Other times, it get stuck in an infinite redirection loop.
According to regex101 my regex should work (had to add escape slashes, but removed in Redirection):
I tried that in my redirect and it did not work. I then tweaked it until I had something that worked. The final result I have is this:
SOURCE URL:
^/(?i)guests/?$
DESTINATION URL:https://elijahstre1stg.wpenginepowered.com/guests/
I have “Ignore Case” and “Regex” enabled. My regex should match whether or not there is a slash on the end by
/?$
How do I get this working?
The page I need help with: [log in to see the link]
- The topic ‘Make all URLS with or without “/” slash redirect to lowercase’ is closed to new replies.