Advertisement
Guest User

htaccess

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