Guest User

Untitled

a guest
Nov 29th, 2016
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 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. RewriteCond %{HTTPS} off
  20. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]]
  21.  
  22. # If you are having problems with the rewrite rules, remove the "#" from the
  23. # line that begins "RewriteBase" below. You will also have to change the path
  24. # of the rewrite to reflect the path to your XenForo installation.
  25. #RewriteBase /xenforo
  26.  
  27. # This line may be needed to enable WebDAV editing with PHP as a CGI.
  28. #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
  29.  
  30. RewriteCond %{REQUEST_FILENAME} -f [OR]
  31. RewriteCond %{REQUEST_FILENAME} -l [OR]
  32. RewriteCond %{REQUEST_FILENAME} -d
  33. RewriteRule ^.*$ - [NC,L]
  34. RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
  35. RewriteRule ^.*$ index.php [NC,L]
  36. </IfModule>
Add Comment
Please, Sign In to add comment