Advertisement
achshar

Untitled

Mar 28th, 2011
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #remove .php
  2. #RewriteCond %{REQUEST_URI} !^/blog/
  3. #RewriteCond %{THE_REQUEST} ^[A-Z]+\ /([^/]+/)*[^.#?\ ]+\.php([#?][^\ ]*)?\ HTTP/
  4. #RewriteRule ^(([^/]+/)*[^.]+)\.php http://achshar.com/$1 [R=301,L]
  5.  
  6. #internal rewrite for .php
  7. #RewriteRule %{REQUEST_URI} !\.(gif|jpe?g|png|css|js|zip)$
  8. #RewriteCond %{REQUEST_FILENAME} !-d
  9. #RewriteCond %{REQUEST_FILENAME}\.php -f
  10. #RewriteRule ^(.*)$ $1.php [L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement