000ubird/Haxeon2/master/try-haxe/.htaccess - Htaccess File

000ubird/Haxeon2/master/try-haxe/.htaccess

DirectorySlash Off
Options -Indexes

RewriteEngine on

# redirecting to new url
RewriteCond %{HTTP_HOST} aaaliasing.net
RewriteRule ^(.*)$ http://try.haxe.org/$1 [R=301]

# local userdir :S
RewriteCond %{HTTP_HOST} localhost
RewriteCond %{REQUEST_URI} !index.php
RewriteCond %{REQUEST_URI} ^/~([^/]*)/
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /~%1/try-haxe/app/index.php?_url=$1 [L,QSA]

# try.haxe.org
RewriteCond %{HTTP_HOST} try.haxe.org
RewriteRule ^$ /index.html [L,QSA]

RewriteCond %{HTTP_HOST} try.haxe.org
RewriteCond %{REQUEST_URI} !index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /app/index.php?_url=$1&_root= [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app/index.php?_url=$1 [L,QSA]

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, REQUEST_FILENAME, REQUEST_URI

Comments

Apache