location / {
# Do this inside of a location so it can be negated
+ rewrite ^/index.php/(.*)$ /wiki/$1 permanent;
location ~ \.php$ {
try_files $uri $uri/ =404; # Don't let php execute non-existent php files
- rewrite ^/index.php/(.*)$ /wiki/$1 permanent;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php5/fpm/lhc_wiklou;
fastcgi_index index.php ;