mirror of
https://github.com/YunoHost-Apps/wordpress_ynh.git
synced 2024-09-03 20:36:10 +02:00
Merge pull request #12 from lunarok/master
Change the try rules wor uri to a rewrite rule, so the permalinks are working without being ssoed
This commit is contained in:
commit
c6cf0a1eaa
2 changed files with 9 additions and 3 deletions
|
@ -4,8 +4,11 @@ location PATHTOCHANGE {
|
||||||
rewrite ^ https://$server_name$request_uri? permanent;
|
rewrite ^ https://$server_name$request_uri? permanent;
|
||||||
}
|
}
|
||||||
index index.php;
|
index index.php;
|
||||||
try_files $uri $uri/ /index.php?$args;
|
if (!-e $request_filename)
|
||||||
location ~ [^/]\.php(/|$) {
|
{
|
||||||
|
rewrite ^(.+)$ PATHTOCHANGE/index.php?q=$1 last;
|
||||||
|
}
|
||||||
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||||
fastcgi_index index.php;
|
fastcgi_index index.php;
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
location PATHTOCHANGE {
|
location PATHTOCHANGE {
|
||||||
alias ALIASTOCHANGE;
|
alias ALIASTOCHANGE;
|
||||||
index index.php;
|
index index.php;
|
||||||
try_files $uri $uri/ /index.php?$args;
|
if (!-e $request_filename)
|
||||||
|
{
|
||||||
|
rewrite ^(.+)$ PATHTOCHANGE/index.php?q=$1 last;
|
||||||
|
}
|
||||||
location ~ [^/]\.php(/|$) {
|
location ~ [^/]\.php(/|$) {
|
||||||
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
|
||||||
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
fastcgi_pass unix:/var/run/php5-fpm.sock;
|
||||||
|
|
Loading…
Add table
Reference in a new issue