✨: permanent redirect to Dojo Articles
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
## WP NintendojoFR
|
|
||||||
server {
|
server {
|
||||||
listen *:443 ssl http2;
|
listen *:443 ssl http2;
|
||||||
listen [::]:443 ssl http2;
|
listen [::]:443 ssl http2;
|
||||||
@@ -17,7 +16,23 @@ server {
|
|||||||
return 301 https://www.nintendojo.fr/images/$1;
|
return 301 https://www.nintendojo.fr/images/$1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
location ~ ^/forum/(.*)$ {
|
||||||
|
return 301 https://forum.nintendojo.fr/$1?$args;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ ^/(index).php(/.*)+ {
|
||||||
|
fastcgi_split_path_info ^(.+\.php)(/.*)$;
|
||||||
|
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
|
location ~ \.php$ {
|
||||||
|
try_files $uri $uri/ =404;
|
||||||
|
fastcgi_pass unix:/var/run/php/php8.2-fpm.sock;
|
||||||
|
include fastcgi_params;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
return 307 https://www.nintendojo.fr;
|
try_files $uri $uri/ /index.php$uri?$args;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user