Advertisement
Guest User

fileha

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