diff options
author | Chaoyi Zha <summermontreal@gmail.com> | 2016-08-10 02:10:13 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-10 02:10:13 +0300 |
commit | f471005080a97349559c0e098f31208202d8dd6d (patch) | |
tree | 1fcbebd3b6c861d96ce5bdf15b6c71b11185e139 /docs | |
parent | fe3dd766e72003e9f3d978eda41ecc3b37a6444e (diff) |
Resolve bug with query string & nginx
Diffstat (limited to 'docs')
-rw-r--r-- | docs/user-guide/installation.md | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/docs/user-guide/installation.md b/docs/user-guide/installation.md index ff005fb..63ec33e 100644 --- a/docs/user-guide/installation.md +++ b/docs/user-guide/installation.md @@ -120,8 +120,8 @@ server { # Recommended for public, internet-facing, websites. location / { - try_files $uri $uri/ /index.php?$query_string; - rewrite ^/([a-zA-Z0-9]+)/?$ /index.php?$1; + try_files $uri $uri/ /index.php$is_args$args; + # rewrite ^/([a-zA-Z0-9]+)/?$ /index.php?$1; } location ~ \.php$ { @@ -146,8 +146,8 @@ server { # server_name example.com; # # location / { -# try_files $uri $uri/ /index.php?$query_string; -# rewrite ^/([a-zA-Z0-9]+)/?$ /index.php?$1; +# try_files $uri $uri/ /index.php$is_args$args; +# # rewrite ^/([a-zA-Z0-9]+)/?$ /index.php?$1; # } # # location ~ \.php$ { |