Catlinman/hivecom.net/master/.htaccess - Htaccess File

Catlinman/hivecom.net/master/.htaccess

Options +FollowSymlinks -MultiViews -Indexes

RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-d

# to make `/path/index.php` to /path/
RewriteCond %{THE_REQUEST} ^GETs(.*/)index.php [NC]
RewriteRule . %1 [NE,R=301,L]

RewriteCond %{THE_REQUEST} ^GETs.+.php [NC]
RewriteRule ^(.+).php$ /$1 [NE,R=301,L,NC]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}/$1.php -f
RewriteRule ^(.*?)/?$ $1.php [L]

RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME} !-d
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html

RewriteCond %{HTTP_HOST} ^ts.hivecom.net
RewriteRule ^(.*)$ http://hivecom.net/ts [L,NC,QSA]

RewriteCond %{HTTP_HOST} ^znc.hivecom.net
RewriteRule ^(.*)$ http://hivecom.net:9001 [L,NC,QSA]

ErrorDocument 404 /errors/notfound.php
ErrorDocument 403 /errors/accessdenied.php

On Github License

Files

Download PDF of Htaccess file
DOCUMENT_ROOT, GET, HTTP_HOST, REQUEST_FILENAME, THE_REQUEST

Comments

Apache