Прошу помощи по редиректу htaccess

G
На сайте с 25.03.2012
Offline
0
308

Хотел сделать редирект со страниц вида

http://site.ru/index.php?productID=111&product_slug=111

на страницы вида

http://site.ru/index.php?productID=111

вставил в htaccess

RewriteCond %{QUERY_STRING} ^productID=(.*)$

RewriteRule ^index\.php /index.php?productID=$1 [L,R=301]

в итоге получаю

http://site.ru/index.php?productID=

и все, номер не передается

DiAksID
На сайте с 02.08.2008
Offline
236
#1

не $1 а %1 :

RewriteRule ^index\.php /index.php?productID=%1 [L,R=301]

show must go on !!!...
G
На сайте с 25.03.2012
Offline
0
#2
DiAksID:
не $1 а %1 :

RewriteRule ^index\.php /index.php?productID=%1 [L,R=301]

DiAksID Спасибо!,

но после правки выбрасывает на

"http://site.ru/index.php?productID=111&product_slug=111"

Авторизуйтесь или зарегистрируйтесь, чтобы оставить комментарий