将旧网址重定向到新网站时出现问题

时间:2018-07-04 10:13:07

标签: html url redirect

例如,我有一个来自以前网站的URL(虚构):

http://www.potatoes.com/shop/Vegetables+Fruits/Orange+Apple+Banana+%26+Services+%3Fcat=00215.html

我正尝试重定向至:

www.potatoes.com或www.potatoes.com/services

但是我做不到。我觉得我们需要将+%26和+%3F更改为其他内容。

但是,我可以通过在cPanel下创建目录和子目录来重定向其他一些链接。例如,旧的网址是:

www.potatoes.com/shop/Vegetables+Fruits/Carrot+Tomato%3Fcat=00445.html

在cPanel下,我创建了一个目录和子目录,并且工作正常,但是,我没有添加%3Fcat = 00445,这是我的目录结构的布局方式:

public_html / potatoes.com / shop / Vegetables + Fruits / Carrot + Tomato。

shop / Vegetables + Fruits是public_html / potatoes.com下的文件夹,而Carrot + Tomato是文件。

请问有人可以帮忙吗?

谢谢

0 个答案:

没有答案