fixes
parent
c45e140f47
commit
14b18150a2
|
@ -16,12 +16,6 @@ server {
|
|||
|
||||
charset utf-8;
|
||||
|
||||
|
||||
TiBian
|
||||
Posted 4 years ago #
|
||||
|
||||
Here is what I use and is working perfect.
|
||||
|
||||
# Remove index.php$
|
||||
if ($request_uri ~* "^(.*/)index\.php$") {
|
||||
return 301 $1;
|
||||
|
@ -35,8 +29,6 @@ server {
|
|||
return 301 $1$3;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
# Remove trailing slash.
|
||||
if (!-d $request_filename) {
|
||||
rewrite ^/(.+)/$ /$1 permanent;
|
||||
|
@ -48,15 +40,6 @@ server {
|
|||
}
|
||||
|
||||
|
||||
location = /favicon.ico {
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
location = /robots.txt {
|
||||
access_log off;
|
||||
log_not_found off;
|
||||
}
|
||||
|
||||
error_page 404 /index.php;
|
||||
|
||||
location ~ ^(.+\.php)(.*)$ {
|
||||
|
|
Loading…
Reference in New Issue