Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. ErrorDocument 404 /404.php
  2.  
  3. Options +MultiViews
  4. RewriteEngine On
  5. RewriteCond %{REQUEST_FILENAME} !-d
  6. RewriteCond %{REQUEST_FILENAME} !-f
  7. RewriteRule ^([^\.]+)$ $1.php [NC,L]
  8.  
  9. # WWW to not WWW.
  10. RewriteCond %{HTTP_HOST} ^www\.rasolutions\.eu$
  11. RewriteRule ^/?$ "http\:\/\/rasolutions\.eu\/" [R=301,L]
  12.  
  13. # No PERL access/
  14. RewriteCond %{HTTP_USER_AGENT} libwww-perl.*
  15. RewriteRule .* – [F,L]
  16.  
  17.  
  18. RewriteRule ^blog/([0-9]+)?$ blog.php?page=$1 [NC,L]
  19. RewriteRule ^blogitem/([0-9]+)?$ blogitem.php?id=$1 [NC,L]
  20.  
  21.  
  22. # Home redirect.
  23. DirectoryIndex home.php
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement