Guest User

Untitled

a guest
Jun 29th, 2014
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. <IfModule mod_rewrite.c>
  2. #default
  3. RewriteEngine On
  4. RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /html/(.*).html\ HTTP/
  5. RewriteRule .* http://localhost/html/%1 [R=301,L]
  6.  
  7. RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /html/(.*)\ HTTP/
  8. RewriteRule .* %1.html [L]
  9.  
  10.  
  11. #custom
  12. RewriteCond %{REQUEST_FILENAME} !-f
  13. RewriteCond %{REQUEST_FILENAME} !-d
  14. RewriteCond %{REQUEST_FILENAME}.php -f
  15.  
  16. RewriteRule ^(.+)$ $1.php [L,QSA]
  17. RewriteCond %{QUERY_STRING} ([^=]+)=([^=]+)
  18.  
  19. RewriteRule ^/?$ %1/%2? [L,R]
  20. RewriteCond %{REQUEST_FILENAME} !-f
  21. RewriteCond %{REQUEST_FILENAME} !-d
  22. RewriteCond %{REQUEST_FILENAME}.html -f
  23. RewriteRule ^(.+)$ $1.html [L,QSA]
  24.  
  25. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment