Created
February 18, 2013 18:37
-
-
Save Snawoot/4979574 to your computer and use it in GitHub Desktop.
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 / { | |
try_files $uri $uri/ @rewr; | |
} | |
location @rewr { | |
rewrite ^([\w\d]+)/?$ /index.php?module=$1 break; | |
rewrite ^([\w\d]+)/([^/]+)/?$ index.php?module=$1&do=$2 break; | |
rewrite ^([\w\d]+)/([^/]+)/([^/]+)/?$ index.php?module=$1&do=$2&type=$3 break; | |
} | |
location = /index.php { | |
# pass to fastcgi | |
} | |
location ~ .*\.php$ { | |
#same shit | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
spasibo bro