Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fc127b7e authored by Florent VINCENT's avatar Florent VINCENT 👾 Committed by Arnau Vàzquez
Browse files

redirect urls with trailing slash

parent 89d4875f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d

# redirect url with trailing slash to url without / 
RewriteCond %{REQUEST_URI} /(.*)/$
RewriteRule ^ /%1 [R=301,L]

RewriteCond %{REQUEST_FILENAME}\.html -f
RewriteRule ^(.*)$ $1.html [NC,L]
 No newline at end of file