From 1ca9abd3ee762e1ccb7f80024bbb8266aa56f1ae Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Wed, 9 Oct 2013 10:39:37 +0200 Subject: [PATCH] Modifications : etc/nginx/site.d/ptitvelo-www/site.conf - Mise en place des urls propres --- etc/nginx/site.d/ptitvelo-www/site.conf | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.20.1