Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <IfModule mod_rewrite.c>
- <IfModule mod_negotiation.c>
- Options -MultiViews
- </IfModule>
- #Turn on rewrite engine if available
- RewriteEngine On
- #We then rewrite URIs that does not end with .php and
- #do not point to existing files to their .php version
- RewriteCond %{REQUEST_URI} !^.*\.php
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule ^(.*)$ $1.php [L]
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement