Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- RewriteEngine on
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME}.php -f
- RewriteRule ^.*$ $0.php [L,QSA]
- RewriteCond %{THE_REQUEST} ([^s]*).php(?[^s]*)?
- RewriteRule (.*) %1 [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement