将旧产品链接重定向到新的 prestashop 产品链接 [英] redirect old product links to new prestashop product links
本文介绍了将旧产品链接重定向到新的 prestashop 产品链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已将旧网店转移到 prestashop.产品具有相同的 ID.
I have transferred a old webshop to prestashop. The products have the same ID´s.
旧链接如下所示:/shopexd.asp?id=2760&bc=no
The old link look like this: /shopexd.asp?id=2760&bc=no
像这样的新的.
/da/mover/2760-truma-mover-sr.html
/da/mover/2760-truma-mover-sr.html
是否可以重定向到新产品链接?通过修改 .htaccess 文件?
Is it possible to redirect to the new product links? By modifying the .htaccess file ?
推荐答案
我假设您使用 apache 作为网络服务器.
I assume you are using apache as webserver.
尝试类似的方法并添加:
Try something like that and add:
RewriteRule ^shopexd.asp?id=([0-9]+)&(.*)$ /product.php?id_product=$1 [QSA,L]
到您的 .htaccess 文件.
to your .htaccess file.
这篇关于将旧产品链接重定向到新的 prestashop 产品链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文