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