Jump to content


Photo
- - - - -

не корректно работает redirect


Best Answer Dyonis , 02 August 2013 - 21:52

оказалось все гораздо сложнее. .htaccess не читает знаки вопроса, и решение, добытое тяжким потом:

RewriteCond %{QUERY_STRING} ^page=shop.product_details&product_id=421&category_id=7$
RewriteRule ^catalog$ http://site.ru/alef? [R=301,L]

=

Redirect 301 /catalog?page=shop.product_details&product_id=421&category_id=7 http://site.ru/alef
Go to the full post


  • This topic is locked This topic is locked
3 replies to this topic

#1 Dyonis

Dyonis
  • JBZoo User (rus)
  • User rate: 0.2
  • posts: 209
  • topics: 55

Posted 01 August 2013 - 09:45

Собственно, залил сайт на основной домен.

Раньше у меня стоял VM и были ссылки товара вида

http://medzub.ru/cat...1&category_id=7

Сейчас прописываю

Redirect permanent /catalog?page=shop.product_details&product_id=421&category_id=7 http://site.ru/new

или

Redirect 301 /catalog?page=shop.product_details&product_id=421&category_id=7 http://site.ru/new

выдает ошибку 404. Но

Redirect 301 /articles/135-ot-konfjety-do-implantacii http://site.ru/new 

отлично "схватывает"

 

 


  • 0

#2 Dyonis

Dyonis
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0.2
  • posts: 209
  • topics: 55

Posted 01 August 2013 - 10:40

Установлена J2.5.8+Zoo3.0.13+JBZoo2.0.1


  • 0

#3 SmetDenis

SmetDenis
  • Administrators
  • User rate: 139.4
  • posts: 16232
  • topics: 200

Posted 02 August 2013 - 17:34

Проверьте опцию RewriteBase . обычно его устанавливают в "/"
  • 0
JBZoo v4.0 и новый чудный мир Open Source GPL
Отключайте проверку лицензий как можно скорее!



— Есть два типа людей: Кто еще не делает бекапы и кто уже делает бекапы.


#4 Dyonis

Dyonis
  • Topic Starter
  • JBZoo User (rus)
  • User rate: 0.2
  • posts: 209
  • topics: 55

Posted 02 August 2013 - 21:52   Best Answer

оказалось все гораздо сложнее. .htaccess не читает знаки вопроса, и решение, добытое тяжким потом:

RewriteCond %{QUERY_STRING} ^page=shop.product_details&product_id=421&category_id=7$
RewriteRule ^catalog$ http://site.ru/alef? [R=301,L]

=

Redirect 301 /catalog?page=shop.product_details&product_id=421&category_id=7 http://site.ru/alef

  • 1




Click to return to top of page in style!