Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #remove .php
- #RewriteCond %{REQUEST_URI} !^/blog/
- #RewriteCond %{THE_REQUEST} ^[A-Z]+\ /([^/]+/)*[^.#?\ ]+\.php([#?][^\ ]*)?\ HTTP/
- #RewriteRule ^(([^/]+/)*[^.]+)\.php http://achshar.com/$1 [R=301,L]
- #internal rewrite for .php
- #RewriteRule %{REQUEST_URI} !\.(gif|jpe?g|png|css|js|zip)$
- #RewriteCond %{REQUEST_FILENAME} !-d
- #RewriteCond %{REQUEST_FILENAME}\.php -f
- #RewriteRule ^(.*)$ $1.php [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement