Htaccess File

eFiction/v5_1-vaporware/master/.htaccess

HTTP_HOST, HTTPS, QUERY_STRING, REQUEST_FILENAME, REQUEST_URI
# Enable rewrite engine and route requests to framework
RewriteEngine On

# Some servers require you to specify the `RewriteBase` directive
# In such cases, it should be the path (relative to the document root)
# containing this .htaccess file
#
# RewriteBase /

RewriteCond %{HTTP_HOST} ^www.
RewriteCond %{HTTPS}s ^on(s)|off
RewriteCond http%1://%{HTTP_HOST} ^(https?://)(www.)?(.+)$
RewriteRule ^ %1%3%{REQUEST_URI} [R=301,L]

RewriteRule ^(data|tmp)/|.ini$ - [R=404]

RewriteCond %{REQUEST_URI}~%{QUERY_STRING} ^(.*?/*)?(modules/challenges/)?(browse|viewpage|viewuser|viewstory|viewseries|reviews|challenges|news).php~?(.+)$ [NC]
RewriteRule ^(.+).php$ /special-rewrite-here?/redirect/$1/%4 [B]
RewriteCond %{REQUEST_URI}~%{QUERY_STRING} ^(.*?/*)?(modules/challenges/)?(browse|viewpage|viewuser|viewstory|viewseries|reviews|challenges|news).php~?(.+)$ [NC]
RewriteRule ^/.+$ %1 [L,R=301]

RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php [L,QSA]
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
Exit mobile version