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. ErrorDocument 401 default
  8. ErrorDocument 403 default
  9. ErrorDocument 404 default
  10. ErrorDocument 405 default
  11. ErrorDocument 406 default
  12. ErrorDocument 500 default
  13. ErrorDocument 501 default
  14. ErrorDocument 503 default
  15. <IfModule mod_rewrite.c>
  16. RewriteEngine On
  17. RewriteBase /
  18. # If you are having problems with the rewrite rules, remove the "#" from the
  19. # line that begins "RewriteBase" below. You will also have to change the path
  20. # of the rewrite to reflect the path to your XenForo installation.
  21. RewriteBase /community
  22. # This line may be needed to enable WebDAV editing with PHP as a CGI.
  23. RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  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. </IfModule>
Comments powered by Disqus