Regex Redirect on urls with and without end slash
-
I have this regex redirect that is working fine when there is a end slash, but it does not work if the url has no end slash. Google has logged 404 pages all with urls with no end slash but not the ones with an end slash.
I have ignore end slash enabled as well.
My source url is: ^\/course-schedule\/(.*)\/(.*)\/
Target url: /product-category/$1/How to I amend my regex to work on both?
Thanks for your help.
The page I need help with: [log in to see the link]
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Regex Redirect on urls with and without end slash’ is closed to new replies.