Salut,
Je voulais savoir si mes règles de réécritures et de redirections étaient bonne ?
Qu'en pensez vous ?
Je voulais savoir si mes règles de réécritures et de redirections étaient bonne ?
Qu'en pensez vous ?
Code:
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.homecinema-hd\.com [NC]
RewriteRule (.*) http://www.homecinema-hd.com/$1 [QSA,R=301,L]
RewriteRule ^news-page-([0-9]+)\.html$ index.php?page=titres&pagenews=$1&lang=fr_FR [L]
RewriteRule ^news-page-([0-9]+)_en\.html$ index.php?page=titres&pagenews=$1&lang=en_US [L]
RewriteRule ^([-a-z0-9]+)_news-([0-9]+)\.html$ index.php?page=news&titre=$1&news=$2&lang=fr_FR [L]
RewriteRule ^([-a-z0-9]+)_news-([0-9]+)_en\.html$ index.php?page=news&titre=$1&news=$2&lang=en_US [L]
RewriteRule ^([-a-z0-9]+)\.html$ index.php?page=$1&lang=fr_FR [L]
RewriteRule ^([-a-z0-9]+)_en\.html$ index.php?page=$1&lang=en_US [L]
RedirectMatch Permanent /index\.php\?page=titres&pagenews=([0-9]+)&lang=fr_FR$ http://www.homecinema-hd.com/news-page-$1\.html
RedirectMatch Permanent /index\.php\?page=titres&pagenews=([0-9]+)&lang=en_US$ http://www.homecinema-hd.com/news-page-$1_en\.html
RedirectMatch Permanent /index\.php\?page=news&titre=([-a-z0-9]+)&news=([0-9]+)&lang=fr_FR$ http://www.homecinema-hd.com/$1_news-$2\.html
RedirectMatch Permanent /index\.php\?page=news&titre=([-a-z0-9]+)&news=([0-9]+)&lang=en_US$ http://www.homecinema-hd.com/$1_news-$2_en\.html
RedirectMatch Permanent /index\.php\?page=([-a-z0-9]+)&lang=fr_FR$ http://www.homecinema-hd.com/$1\.html
RedirectMatch Permanent /index\.php\?page=([-a-z0-9]+)&lang=en_US$ http://www.homecinema-hd.com/$1_en\.html