Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Original
- # If you modify this file then change the above line to: # Modified
- <IfModule mod_rewrite.c>
- RewriteEngine On
- # Certain hosts may require the following line.
- # If vanilla is in a subfolder then you need to specify it after the /.
- # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
- # RewriteBase /
- RewriteCond %{QUERY_STRING} ^p=/?([^&]+)(&([^?]+))?$
- RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
- RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
- RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
- RewriteRule ^index\.php %1?%3 [E=X_REWRITE:1,L]
- # The basic rewrite rule.
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
- RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
- RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
- RewriteRule ^(.*)$ index.php [QSA,E=X_REWRITE:1,E=X_PATH_INFO:/$1,L]
- # Add the proper X_REWRITE server variable for rewritten requests.
- RewriteCond %{ENV:REDIRECT_X_REWRITE} .+
- RewriteCond %{ENV:REDIRECT_X_PATH_INFO} (.+)
- RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
- RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
- RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
- RewriteRule ^index\.php - [QSA,E=X_REWRITE:1,E=!REDIRECT_X_REWRITE,E=X_PATH_INFO:%1,E=!REDIRECT_X_PATH_INFO,L]
- # 301 redirect urls that start with index.php
- #RewriteCond %{REQUEST_METHOD} GET [NC]
- #RewriteCond %{REQUEST_URI} ^(.*?)/index\.php(.*)$
- #RewriteRule ^index\.php /%1%2 [QSA,R,L]
- </IfModule>
- <IfModule mod_headers.c>
- <FilesMatch "(?<!embed)\.(css|js|woff|ttf|eot|svg|png|gif|jpeg|jpg|ico|swf)$">
- Header set Cache-Control "max-age=315360000"
- Header set Expires "31 December 2037 23:59:59 GMT"
- </FilesMatch>
- </IfModule>
- RewriteCond %{HTTP_HOST} ^forum\.simplesurvival\.eu$ [OR]
- RewriteCond %{HTTP_HOST} ^www\.forum\.simplesurvival\.eu$
- RewriteCond %{REQUEST_URI} !^/[0-9]+\..+\.cpaneldcv$
- RewriteCond %{REQUEST_URI} !^/[A-F0-9]{32}\.txt(?:\ Comodo\ DCV)?$
- RewriteCond %{REQUEST_URI} !^/\.well-known/acme-challenge/[0-9a-zA-Z_-]+$
- RewriteRule ^/?$ "https\:\/\/forum\.simplesurvival\.eu\/discussions" [R=301,L]
- # php -- BEGIN cPanel-generated handler, do not edit
- # Set the “ea-php56” package as the default “PHP” programming language.
- <IfModule mime_module>
- AddType application/x-httpd-ea-php56 .php .php5 .phtml
- </IfModule>
- # php -- END cPanel-generated handler, do not edit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement