merge-requests/2/head
Matthew 2021-07-08 23:56:48 -04:00
parent c45e140f47
commit 14b18150a2
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 0 additions and 17 deletions

View File

@ -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)(.*)$ {