blastpad/BlastPad/dev/.htaccess - Htaccess File

blastpad/BlastPad/dev/.htaccess

## Start of BlastPad ##
RewriteEngine On

# Redirect all non-existing files and directories to index.php.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [NC]

# Hide Trace and Track debugging.
RewriteCond %{REQUEST_METHOD} ^(TRACE|TRACK)
RewriteRule .* - [F]

# Change www to non-www.
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^ http://%1%{REQUEST_URI} [R=301,NE]

# Error documents.
ErrorDocument 400 400.php
ErrorDocument 401 401.php
ErrorDocument 403 403.php
ErrorDocument 404 404.php
ErrorDocument 500 500.php

## End of BlastPad ##

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME, REQUEST_METHOD, REQUEST_URI

Comments

Apache