Advertisement
Guest User

.htaccess

a guest
Feb 14th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.16 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 405 default
  12. ErrorDocument 406 default
  13. ErrorDocument 500 default
  14. ErrorDocument 501 default
  15. ErrorDocument 503 default
  16.  
  17. <IfModule mod_rewrite.c>
  18. RewriteEngine On
  19.  
  20. # If you are having problems with the rewrite rules, remove the "#" from the
  21. # line that begins "RewriteBase" below. You will also have to change the path
  22. # of the rewrite to reflect the path to your XenForo installation.
  23. RewriteBase /forum
  24.  
  25. # This line may be needed to enable WebDAV editing with PHP as a CGI.
  26. #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  27.  
  28. RewriteCond %{REQUEST_FILENAME} -f [OR]
  29. RewriteCond %{REQUEST_FILENAME} -l [OR]
  30. RewriteCond %{REQUEST_FILENAME} -d
  31. RewriteRule ^.*$ - [NC,L]
  32. RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
  33. RewriteRule ^.*$ index.php [NC,L]
  34. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement