From c45dfc913475ffc03db42ea2788ad42870104a96 Mon Sep 17 00:00:00 2001 From: Simon Leblanc Date: Fri, 20 May 2011 02:53:25 +0200 Subject: [PATCH] htaccess for clean URL --- .htaccess | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .htaccess diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..410958e --- /dev/null +++ b/.htaccess @@ -0,0 +1,12 @@ + + RewriteEngine On + + RewriteCond %{REQUEST_FILENAME} -f [OR] + RewriteCond %{REQUEST_FILENAME} -d + RewriteRule .* - [L] + + RewriteRule ^([a-z0-9]{16})$ studs.php?sondage=$1 + RewriteRule ^([a-z0-9]{24})/admin$ adminstuds.php?sondage=$1 + # Pour le dernier j'ai honte, mais il y a trop de chose à modifier pour le moment :-) + RewriteRule ^([a-z0-9]{24})/images/(.*)$ images/$2 + \ No newline at end of file