【发布时间】:2021-12-21 14:08:12
【问题描述】:
您好,我正在尝试将重定向正则表达式添加到我的 .htaccess 重定向
从/%year%/%monthnum%/%postname%.html 到/%category%/%postname%/%post_id%/
Yaost helper 给了我这个
RedirectMatch 301 ^/([0-9]{4})/([0-9]{2})/([^/]+).html$ https://www.ruoaa.com/$3
我不是专家,但我认为它与我的结构不符
此外,永久链接不是很久以前就已经完成的从博客到 wordpress 的选项迁移,永久链接不会起到作用,所有上层链接都给出 404
【问题讨论】:
标签: regex wordpress .htaccess permalinks http-redirect