我正在将整个网站从html和dreamweaver格式迁移到wordpress。我使用运行良好的htlm导入插件导入了内容。现在,我必须更正所有内容链接,因为它们保持了dreamweaver应用的相同可变url格式,并且由于我更改了dite目录结构,现在大多数链接都被破坏了。
基本上,我的问题如下:
1) 旧站点内部链接URL(dreamweaver):
<a href="page.html">page</a>
2)现在,在WP中,正确的url应该是:
<a href="/parentpage/page/">page</a>
我正在使用BrokenLink和Search&;更换插件以更正它们,我的问题是:
Should i replace the old url (1 above) to:
a) <a href="/parentpage/page/">page</a> (2 above), or
b) <a href="/page/">page</a> ( I noticed that even though it is not the final full url (parent page and page), a link with this url works well in WP, probably due any redirect rules.
尽管两者最终都会起作用,但我想知道:
What should be the format (a or b above) I should use to replace the old ones to avoid problem in case I decide to modify the parent page, for example, from "/parentpage/page/" to "/parentpageX/page/"? My doubt is if I use the option "b" to replace the old one, if I change the parent page some time, this link would become broken again?
What is the better option take into account SEO?
Do you suggest any better method to handle this old broken url issue?
提前感谢您的帮助