![](/img/trans.png)
[英]Redirect old wordpress URLs articles to new website and new permalinks URLs structure
[英]Htaccess redirect for old urls on wordpress installation with new file structure
我必須更新站點的文件結構。 一切正常,但我想設置一些重定向以將舊的URL重定向到新版本。
舊網址:www.example.com/wp/test-page
新網址:www.example.com/test-page
如何設置重定向以捕獲包含“ wp”的URL的所有實例,然后不重定向到相應的URL?
關於A
好的,我設法找到了解決方案。 我有正確的規則,我只需要將它們放在默認的Wordpress重寫之前即可...
RewriteEngine On
RewriteBase /
RewriteRule ^wp/(.*)$ /$1 [L,NC,R]
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.