Jump to content
Sign in to follow this  
No48

[Решено] Редирект. В чем может быть проблема?

Recommended Posts

В чем может быть проблема?

 

Редирект работает:

RewriteCond %{QUERY_STRING} ^/medicamenti?product_id=83985$
RewriteRule ^(.*)$ /medicamenti/kombogliza-xr-tab-25mg-1000mg-no28? [R=301,L]
А этот - нет:

RewriteCond %{QUERY_STRING} ^/medicamenti/teraflu-limon-10$
RewriteRule ^(.*)$ /medicamenti/teraflyu-limon-pak-no10? [R=301,L]
Работает:

RewriteCond %{QUERY_STRING} ^com/kalciy-d3-nikomed-forte-tab-no120$
RewriteRule ^(.*)$ /vitamini/kalciy-d3-nikomed-forte-tab-no120? [R=301,L]
Не работает:

RewriteCond %{QUERY_STRING} ^com/dip-relif-gel-5-50$
RewriteRule ^(.*)$ /medicamenti/dip-rilif-gel-5-50-no1? [R=301,L]
Edited by No48

Share this post


Link to post
Share on other sites

Вопрос снят.
Opencart конвертировал запросы "под себя".
Нужно внимательнее быть - смотреть какой линк он возвращает :)

Решение:
 

# For /medicamenti/teraflu-limon-10$
RewriteCond %{QUERY_STRING} ^_route_=medicamenti/teraflu-limon-10$
RewriteRule ^(.*)$ /medicamenti/teraflyu-limon-pak-no10? [R=301,L]

# For /dip-relif-gel-5-50
RewriteCond %{QUERY_STRING} ^_route_=dip-relif-gel-5-50$
RewriteRule ^(.*)$ /medicamenti/dip-rilif-gel-5-50-no1? [R=301,L]
Edited by No48

Share this post


Link to post
Share on other sites

Что это было?

 

%{QUERY_STRING} ^_route_ и кто вам такое генерит?

 

_route_ - это технологический параметр. OC  его никак не отдает наружу!!!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

On our site, cookies are used and personal data is processed to improve the user interface. To find out what and what personal data we are processing, please go to the link. If you click "I agree," it means that you understand and accept all the conditions specified in this Privacy Notice.