XF 2.0 Route filters

JoyFreak

Well-known member
Just found out I can rename urls yesterday, what an amazing feature, thank you!

But one problem is that if someone for example types the url without the ending '/' it shoots up an error saying cannot be found unless you add that '/'. It's a bit annoying, so wondered if there is a way to make it work without the '/' too?
 
Pretty sure it'd have to be:
Code:
RewriteEngine on
RewriteRule ^/discord$ /discord/ [R=301]
(Likely at/near the top of the file.)
 
Any ideas on this? None of the above code worked.

I don't know the the route filter feature doesn't allow for the link to work without '/'. Would be really useful!
 
Back
Top Bottom