Redirecting with or without trailing slash…
-
Hi,
I want to redirect a page that ends with or with a trailing slash.
e.g. mysite.com/example and mysite.com/example/ both should redirect.I have checked the ‘reg exp’ box, and added this to the end of the url:
[/]? so it looks like /example[/]?Is that the right way?
When I do that it says:
to prevent a greedy regular expression you can use a ^ to anchor it to the start of the URL. For example: ^/article-title/[/]?
If I do as it suggests, it says:
The source URL should probably start with a /
I don’t understand what that one means. Can you tell just how to do this?
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Redirecting with or without trailing slash…’ is closed to new replies.