X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Flhc-www%2Fsite.conf;h=6c3729c1ee8d92acbf90cc3ccd73a33b26a0a8e5;hp=cac567dfe8347da6ae5d99ec22dd8e7f91cd4288;hb=43bad71e0d705177f617c51bf8ccc3b3b418a7e7;hpb=5b3165cd9b416b26c9324ad92c8af5b1214c7964 diff --git a/etc/nginx/site.d/lhc-www/site.conf b/etc/nginx/site.d/lhc-www/site.conf index cac567d..6c3729c 100644 --- a/etc/nginx/site.d/lhc-www/site.conf +++ b/etc/nginx/site.d/lhc-www/site.conf @@ -19,4 +19,9 @@ location ~ \.php$ { fastcgi_pass unix:/run/php5/fpm/lhc_www; } +error_page 404 = @spip; + +location @spip { + rewrite ^/(.*)(\.html)?$ /spip.php?url_propre=$1&$args last; +} # vim: ft=sh