普通网友 2014-01-14 21:54
浏览 141
已采纳

301重定向传递参数?

I have an old prestashop website http://www.jeans-vintage.com/ (in french). I want to do some 301 redirects to the new domain which is http://www.destock-vintage.com/.

So I modified Jeans-Vintage htaccess :

For example for the Men Polos category :

RedirectPermanent /70-polos http://www.destock-vintage.com/24-polos-vintage

The redirection is working you can test it here : http://www.jeans-vintage.com/70-polos

But when the new page loads here is the URL : http://www.destock-vintage.com/24-polos-vintage?id_category=70

Why do I have that ?id_category=70 ??

It's doing the exact same thing for every 301 redirect I'm trying...

I tried adding a "?" at the end of the redirect but this still doesn't work and shows :

http://www.destock-vintage.com/24-polos-vintage?

Any help would be appreciated !

Thanks guys :)

  • 写回答

2条回答 默认 最新

  • dongyao2129 2014-01-14 22:06
    关注

    Try this on Jeans-Vintage htaccess:

    RewriteEngine On
    
    RewriteCond %{HTTP_HOST}  ^www\.jeans-vintage\.com$ [NC]
    RewriteCond %{QUERY_STRING}  ^$
    RewriteRule ^70-polos$ http://www.destock-vintage.com/24-polos-vintage? [R=301,NE,NC,L]
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 关于#Java#的问题,如何解决?
  • ¥15 加热介质是液体,换热器壳侧导热系数和总的导热系数怎么算
  • ¥15 想问一下树莓派接上显示屏后出现如图所示画面,是什么问题导致的
  • ¥100 嵌入式系统基于PIC16F882和热敏电阻的数字温度计
  • ¥15 cmd cl 0x000007b
  • ¥20 BAPI_PR_CHANGE how to add account assignment information for service line
  • ¥500 火焰左右视图、视差(基于双目相机)
  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化