Loading htdocs/.htaccess +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 Loading
htdocs/.htaccess +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