Advertisement
Guest User

Untitled

a guest
May 5th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.63 KB | None | 0 0
  1. # Original
  2. # If you modify this file then change the above line to: # Modified
  3.  
  4. <IfModule mod_rewrite.c>
  5. RewriteEngine On
  6.  
  7. # Certain hosts may require the following line.
  8. # If vanilla is in a subfolder then you need to specify it after the /.
  9. # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
  10. # RewriteBase /
  11.  
  12. RewriteCond %{QUERY_STRING} ^p=/?([^&]+)(&([^?]+))?$
  13. RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  14. RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  15. RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
  16. RewriteRule ^index\.php %1?%3 [E=X_REWRITE:1,L]
  17.  
  18. # The basic rewrite rule.
  19. RewriteCond %{REQUEST_FILENAME} !-f
  20. RewriteCond %{REQUEST_FILENAME} !-d
  21. RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  22. RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  23. RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
  24. RewriteRule ^(.*)$ index.php [QSA,E=X_REWRITE:1,E=X_PATH_INFO:/$1,L]
  25.  
  26. # Add the proper X_REWRITE server variable for rewritten requests.
  27. RewriteCond %{ENV:REDIRECT_X_REWRITE} .+
  28. RewriteCond %{ENV:REDIRECT_X_PATH_INFO} (.+)
  29. RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  30. RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  31. RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
  32. RewriteRule ^index\.php - [QSA,E=X_REWRITE:1,E=!REDIRECT_X_REWRITE,E=X_PATH_INFO:%1,E=!REDIRECT_X_PATH_INFO,L]
  33.  
  34. # 301 redirect urls that start with index.php
  35. #RewriteCond %{REQUEST_METHOD} GET [NC]
  36. #RewriteCond %{REQUEST_URI} ^(.*?)/index\.php(.*)$
  37. #RewriteRule ^index\.php /%1%2 [QSA,R,L]
  38. </IfModule>
  39.  
  40. <IfModule mod_headers.c>
  41. <FilesMatch "(?<!embed)\.(css|js|woff|ttf|eot|svg|png|gif|jpeg|jpg|ico|swf)$">
  42. Header set Cache-Control "max-age=315360000"
  43. Header set Expires "31 December 2037 23:59:59 GMT"
  44. </FilesMatch>
  45. </IfModule>
  46. RewriteCond %{HTTP_HOST} ^forum\.simplesurvival\.eu$ [OR]
  47. RewriteCond %{HTTP_HOST} ^www\.forum\.simplesurvival\.eu$
  48. RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
  49. RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
  50. RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
  51. RewriteRule ^/?$ "https\:\/\/forum\.simplesurvival\.eu\/discussions" [R=301,L]
  52.  
  53.  
  54. # php -- BEGIN cPanel-generated handler, do not edit
  55. # Set the “ea-php56” package as the default “PHP” programming language.
  56. <IfModule mime_module>
  57. AddType application/x-httpd-ea-php56 .php .php5 .phtml
  58. </IfModule>
  59. # php -- END cPanel-generated handler, do not edit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement