forked from clemos/try-haxe
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.htaccess
28 lines (22 loc) · 785 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
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]