fixes
parent
14b18150a2
commit
2f79e5ca9a
|
@ -16,29 +16,9 @@ server {
|
|||
|
||||
charset utf-8;
|
||||
|
||||
# Remove index.php$
|
||||
if ($request_uri ~* "^(.*/)index\.php$") {
|
||||
return 301 $1;
|
||||
}
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.php?$query_string;
|
||||
|
||||
# Remove from everywhere index.php
|
||||
if ($request_uri ~* "^(.*/)index\.php(/?)(.*)") {
|
||||
return 301 $1$3;
|
||||
}
|
||||
}
|
||||
# Remove trailing slash.
|
||||
if (!-d $request_filename) {
|
||||
rewrite ^/(.+)/$ /$1 permanent;
|
||||
}
|
||||
|
||||
# Clean Double Slashes
|
||||
if ($request_uri ~* "\/\/") {
|
||||
rewrite ^/(.*) /$1 permanent;
|
||||
}
|
||||
|
||||
|
||||
error_page 404 /index.php;
|
||||
|
||||
|
|
Loading…
Reference in New Issue