htaccess for clean URL

This commit is contained in:
Simon Leblanc 2011-05-20 02:53:25 +02:00
parent c56e3b3b4d
commit c45dfc9134

12
.htaccess Normal file
View File

@ -0,0 +1,12 @@
<IfModule mod_rewrite.c>
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
</IfModule>