Страница 1 из 1

Редирект 301 с index.php**** на name-page.html

СообщениеДобавлено: Вт окт 30, 2012 12:18 pm
noVe
Доброго,

Подскажите, пожалуйста, как сделать редирект 301 с ссылок типа index.php**** (например, index.php?option=com_content&task=view&id=34&Itemid=40) на name-page.html?

Добавляю в .htaccess

Код: выделить все
RewriteEngine On
RewriteBase /
Redirect 301 /test-page http://test-site.by/index.php?option=com_content&task=view&id=26&Itemid=40&mos_change_template=waterandstone800


Все ок.

А если

Код: выделить все
Redirect 301 /index.php?option=com_content&task=view&id=26&Itemid=40&mos_change_template=waterandstone800 http://test-site.by/test-page


Ничего :(

СообщениеДобавлено: Пт ноя 29, 2013 6:54 am
Андрей
Попробуй использовать http://htaccess.net.ru/doc/mod_rewrite/index.php -

mod_rewrite -более мощное средство преобразований.