| Код |
|---|
RewriteCond %{HTTP_HOST} ^www.site.ru
RewriteRule (.*) http://site.ru/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.site70.ru
RewriteRule (.*) http://site.ru/$1 [R=301,L]
RewriteCond %{REQUEST_URI} ^(.*)/index\.php$
RewriteRule ^(.*)index\.php$ http://%{HTTP_HOST}/$1 [R=301,L]
RewriteCond %{QUERY_STRING} (?<=(?<=^|&)option=com_content)(?=&|$) [NC]
RewriteCond %{QUERY_STRING} (?<=(?<=^|&)task=view)(?=&|$) [NC]
RewriteCond %{QUERY_STRING} (?<=(?<=^|&)id=26)(?=&|$) [NC]
RewriteCond %{QUERY_STRING} (?<=(?<=^|&)Itemid=16)(?=&|$) [NC]
RewriteRule ^index\.php$ /new_page1/? [NC,R=301,L] |
и самое главное 301 с уже проиндексированной страницы на новую, а как отдать 404 на те страницы которые не существуют, вида
"index.php?option=com_content&task=view&id=2&Itemid=13"??
если прописать к примеру "/new_1page1/" - сервер отдает 404, с "index.php?option=com_content&task=view&id=2&Itemid=13" показывает глагну, причем url обрезан на так "?option=com_content&task=view&id=2&Itemid=13", т.е. удаляется index.php
ХЕЛП!!!