diff options
| author | root | 2014-02-23 18:36:06 +0100 |
|---|---|---|
| committer | root | 2014-02-23 18:36:06 +0100 |
| commit | 9847c616a2ccc60ace80e8fbfafbc99673b09a43 (patch) | |
| tree | e408dabc4fb188077cdb4200360afeb0179d62a8 /blob/nginx_rewrite_rules | |
| parent | 8d95fb4b71029d96fa69e1c472b261fec32786c9 (diff) | |
| download | files.iamfabulous.de-9847c616a2ccc60ace80e8fbfafbc99673b09a43.tar.gz | |
minor
Diffstat (limited to 'blob/nginx_rewrite_rules')
| -rw-r--r-- | blob/nginx_rewrite_rules | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/blob/nginx_rewrite_rules b/blob/nginx_rewrite_rules index 950ae78..1a1a238 100644 --- a/blob/nginx_rewrite_rules +++ b/blob/nginx_rewrite_rules @@ -1,26 +1,27 @@ -location /robots.txt {} +location /robots.txt {} #stop rewriting the robots.txt location ~* ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? { - rewrite ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=login&arguments=$1 last; + rewrite ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=login&arguments=$1 last; } location ~* ^/?logout([?/]?.*) { - rewrite ^/?logout([?/]?.*) /index.php?task=logout&arguments=$1 last; + rewrite ^/?logout([?/]?.*) /index.php?task=logout&arguments=$1 last; } location ~* ^/?register(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? { - rewrite ^/?register(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=register&arguments=$1 last; + rewrite ^/?register(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=register&arguments=$1 last; } location ~* ^/?invite(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? { - rewrite ^/?invite(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=invite&arguments=$1 last; + rewrite ^/?invite(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? /index.php?task=invite&arguments=$1 last; } location ~* \.php(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {} #empty block to catch all location / { - rewrite ^/([0-9a-zA-Z-_]*)/(.*) /index.php?name=$1&folder=$2 last; - rewrite ^/([0-9a-zA-Z-_]*) /index.php?name=$1&folder=$2 last; + rewrite ^/([0-9a-zA-Z-_]+)/(.*) /index.php?name=$1&folder=$2 last; + rewrite ^/([0-9a-zA-Z-_]+) /index.php?name=$1 last; + rewrite ^/ /index.php last; break; } |
