Advertisement
Guest User

Untitled

a guest
Jan 10th, 2015
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. # Mod_security can interfere with uploading of content such as attachments. If you
  2. # cannot attach files, remove the "#" from the lines below.
  3. #<IfModule mod_security.c>
  4. # SecFilterEngine Off
  5. # SecFilterScanPOST Off
  6. #</IfModule>
  7.  
  8. ErrorDocument 401 default
  9. ErrorDocument 403 default
  10. ErrorDocument 404 default
  11. ErrorDocument 500 default
  12.  
  13. <IfModule mod_rewrite.c>
  14. RewriteEngine On
  15.  
  16. # If you are having problems with the rewrite rules, remove the "#" from the
  17. # line that begins "RewriteBase" below. You will also have to change the path
  18. # of the rewrite to reflect the path to your XenForo installation.
  19. #RewriteBase /xenforo
  20.  
  21. # This line may be needed to enable WebDAV editing with PHP as a CGI.
  22. #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  23.  
  24. RewriteCond %{REQUEST_FILENAME} -f [OR]
  25. RewriteCond %{REQUEST_FILENAME} -l [OR]
  26. RewriteCond %{REQUEST_FILENAME} -d
  27. RewriteRule ^.*$ - [NC,L]
  28. RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
  29. RewriteRule ^.*$ index.php [NC,L]
  30. RewriteRule ^forums/(.*)?$ /$1 [R=301,L]
  31. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement