Skip to content

Commit

Permalink
fixed issues with rewriting / deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
clemos committed Nov 22, 2014
1 parent 93ea5d0 commit 9c76921
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .htaccess
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,16 @@ 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]
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]
RewriteRule ^(.*)$ /app/index.php?_url=$1&_root= [L,QSA]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ app/index.php?_url=$1 [L,QSA]
2 changes: 1 addition & 1 deletion src/App.hx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ class App {

// / is rewritten to /app
Api.base = Api.root;
Api.host = Web.getHostName();
}
Api.host = Web.getHostName();

var api = new Api();

Expand Down

0 comments on commit 9c76921

Please sign in to comment.