summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHorus32014-02-24 22:18:26 +0100
committerHorus32014-02-24 22:18:26 +0100
commite3e4b9b5d940a37e9592d5080994f92faca738b7 (patch)
tree66349374078636cf0d3ad603ca9ddaa2029e2791
parent9847c616a2ccc60ace80e8fbfafbc99673b09a43 (diff)
downloadfiles.iamfabulous.de-e3e4b9b5d940a37e9592d5080994f92faca738b7.tar.gz
Fixed regexp
-rw-r--r--blob/nginx_rewrite_rules14
1 files changed, 7 insertions, 7 deletions
diff --git a/blob/nginx_rewrite_rules b/blob/nginx_rewrite_rules
index 1a1a238..8a3d0df 100644
--- a/blob/nginx_rewrite_rules
+++ b/blob/nginx_rewrite_rules
@@ -1,27 +1,27 @@
location /robots.txt {} #stop rewriting the robots.txt
-location ~* ^/?login(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {
+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;
}
-location ~* ^/?logout([?/]?.*) {
+location ~* ^/?logout(/?\?[0-9a-zA-Z]+(=[0-9a-zA-Z]*)?)?$ {
rewrite ^/?logout([?/]?.*) /index.php?task=logout&arguments=$1 last;
}
-location ~* ^/?register(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {
+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;
}
-location ~* ^/?invite(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {
+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;
}
-location ~* \.php(\?[0-9a-zA-Z]*(=[0-9a-zA-Z]*)?)? {} #empty block to catch all
+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 last;
- rewrite ^/ /index.php last;
+ rewrite ^/([0-9a-zA-Z-_]+)$ /index.php?name=$1 last;
+ rewrite ^/$ /index.php last;
break;
}