Modifications : etc/nginx/site.d/lhc-www/site.conf - Mise en place des
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 9 Oct 2013 08:34:46 +0000 (10:34 +0200)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Wed, 9 Oct 2013 08:34:46 +0000 (10:34 +0200)
urls propres

etc/nginx/site.d/lhc-www/site.conf

index cac567d..6c3729c 100644 (file)
@@ -19,4 +19,9 @@ location ~ \.php$ {
 
        fastcgi_pass unix:/run/php5/fpm/lhc_www;
 }
 
        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
 # vim: ft=sh