Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine on
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME}\.html -f
- RewriteRule ^([^/]+)/$ $1.html
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} !(\.[a-zA-Z0-9]{1,5}|/)$
- RewriteRule (.*)$ /$1/ [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement