1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/wordpress_ynh.git synced 2024-09-03 20:36:10 +02:00

Add rewrite rules for permalinks

Change try rule to rewrite rule so the permalinks are working without being ssoed
This commit is contained in:
lunarok 2014-06-09 13:57:42 +02:00
parent 6aed76192e
commit 9fad623b12

View file

@ -1,7 +1,10 @@
location PATHTOCHANGE {
alias ALIASTOCHANGE;
index index.php;
try_files $uri $uri/ /index.php?$args;
if (!-e $request_filename)
{
rewrite ^(.+)$ PATHTOCHANGE/index.php?q=$1 last;
}
location ~ [^/]\.php(/|$) {
fastcgi_split_path_info ^(.+?\.php)(/.*)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;