Created
December 2, 2010 08:26
-
-
Save SlexAxton/724980 to your computer and use it in GitHub Desktop.
a nginx conf for the testswarm .htaccess
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
location ~ \.ini$ { deny all; } | |
location / { | |
root /location.com/httpdocs; | |
index index.php index.html index.htm; | |
try_files $uri $uri/index.php @normal; location @normal { redirects } | |
rewrite ^(.*[^/])$ $1/ permanent; | |
rewrite ^run/$ index.php?state=run last; | |
rewrite ^run/(.*)/?$ index.php?state=run&user=$1 last; | |
rewrite ^login/$ index.php?state=login last; | |
rewrite ^logout/$ index.php?state=logout last; | |
rewrite ^signup/$ index.php?state=signup last; | |
rewrite ^scores/$ index.php?state=scores last; | |
rewrite ^user/(.*)/?$ index.php?state=tinder&user=$1 last; | |
rewrite ^job/(.*)/?$ index.php?state=jobstatus&job_id=$1 last; | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment