Browse Source

Add rewrite rules for permalinks

Change try rule to rewrite rule so the permalinks are working without being ssoed
pull/1/head
lunarok 12 years ago
parent
commit
9fad623b12
  1. 5
      conf/nginx.conf-public

5
conf/nginx.conf-public

@ -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;

Loading…
Cancel
Save