X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fnginx%2Fsite.d%2Fptitvelo-www%2Fsite.conf;h=e3b55c25ea20df7cce304a94405d3a26433822b8;hp=20bb326a30be8d2979475f05a36b68e1ba372ced;hb=1ca9abd3ee762e1ccb7f80024bbb8266aa56f1ae;hpb=43bad71e0d705177f617c51bf8ccc3b3b418a7e7 diff --git a/etc/nginx/site.d/ptitvelo-www/site.conf b/etc/nginx/site.d/ptitvelo-www/site.conf index 20bb326..e3b55c2 100644 --- a/etc/nginx/site.d/ptitvelo-www/site.conf +++ b/etc/nginx/site.d/ptitvelo-www/site.conf @@ -19,4 +19,10 @@ location ~ \.php$ { fastcgi_pass unix:/run/php5/fpm/ptitvelo_www; } +error_page 404 = @spip; + +location @spip { + rewrite ^/(.*)(\.html)?$ /spip.php?url_propre=$1&$args last; +} + # vim: ft=sh