-
Notifications
You must be signed in to change notification settings - Fork 41
/
.htaccess
33 lines (26 loc) · 944 Bytes
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
DirectorySlash Off
Options -Indexes
RewriteEngine on
# redirecting to new url
RewriteCond %{HTTP_HOST} aaaliasing\.net
RewriteRule ^(.*)$ https://try.haxe.org/$1 [R=301,L]
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} try\.haxe\.org
RewriteRule ^(.*)$ https://try.haxe.org/$1 [R=301,L]
# 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
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app/index.php?_url=$1 [L,QSA]