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