RewriteEngine On #### # Redirection sur le www : # RewriteCond %{HTTP_HOST} !^www.llaumgui.com$ RewriteRule ^(.*) http://www.llaumgui.com/$1 [QSA,L,R=301] #### # Vielles URL DC1 : # Vieux RSS : Redirect permanent /rss.php http://www.llaumgui.com/feed/rss2 Redirect permanent /atom.php http://www.llaumgui.com/feed/atom # Vielle TOC : RedirectMatch permanent /index.php/toc(.*)$ http://www.llaumgui.com/archive # Vieux billets : RewriteCond %{REQUEST_URI} !^/index\.php\/?$ RewriteCond %{REQUEST_URI} !^/index\.php/archive RewriteCond %{REQUEST_URI} !^/index\.php/category RewriteCond %{REQUEST_URI} !^/index\.php/feed RewriteCond %{REQUEST_URI} !^/index\.php/page RewriteCond %{REQUEST_URI} !^/index\.php/post RewriteCond %{REQUEST_URI} !^/index\.php/tag RewriteCond %{REQUEST_URI} !^/index\.php/tags RewriteRule index.php/(.*) http://www.llaumgui.com/post/$1 [QSA,L,R=301] #### # Disparition du index.php # AddType x-mapp-php5 .php RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) index.php/$1 RewriteRule ^index.php$ index.php/ DirectoryIndex index.php/ #### # Erreur : # #ErrorDocument 404 /