Page 1 of 1

How can I remove slash from URL using .htaccess?

Posted: Mon Jul 13, 2020 6:47 am
by darisazma
how can i remove slash from url in .htaccess ? i want tray any code but not worked

Re: How can I remove slash from URL using .htaccess?

Posted: Mon Jul 13, 2020 9:08 am
by AMurray
i want tray any code but not worked
??? ???
What URL are you talking about?

Re: How can I remove slash from URL using .htaccess?

Posted: Mon Jul 13, 2020 9:11 am
by AMurray
https://expressionengine.stackexchange. ... -from-urls

(Easily found; your favourite search engine is your best friend.....) :) ;)

[Edit] or this: viewtopic.php?t=701030

Re: How can I remove slash from URL using .htaccess?

Posted: Tue Sep 22, 2020 12:26 pm
by rickysmith
here you can remove / from url
If you want to redirect from http://example.com/test/ to http://example.com/test (i.e. remove the slash at the end of URLs) then you can use the following . htaccess code: RewriteCond %{REQUEST_FILENAME} !-