Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

固定连接修改报错 #208

Open
vbskycn opened this issue Oct 13, 2021 · 1 comment
Open

固定连接修改报错 #208

vbskycn opened this issue Oct 13, 2021 · 1 comment
Assignees
Labels
改进 Improvements or additions to documentation

Comments

@vbskycn
Copy link

vbskycn commented Oct 13, 2021

从别的博客转过来的,其它非常不错,还有就是一个固定连接修改报错的问题求大佬看看
在baidu还有些流量过来,不改成一样的就都404了

目前后台只能这种格式的
/51670.html
/articles/2021/01/09/1610192449213.html
改成其它的都会报错

但我以前wp是这种的
/articles/1610192449213.html

请大佬修复,或给个方案,谢谢

@adlered
Copy link
Owner

adlered commented Oct 13, 2021

收到,在3.0会改善,这是因为路由功能不支持多级检索导致的,临时解决方案:
使用nginx进行rewrite重写,转发到现有URL。
缺点是比较花费时间,需要先把文章编号改成和wp一样原来的,然后nginx用通配符匹配,修改url字段直接转发就可以了。

@adlered adlered self-assigned this Oct 13, 2021
@adlered adlered added the 改进 Improvements or additions to documentation label Oct 13, 2021
@adlered adlered added this to the v2.6开发计划 milestone Oct 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
改进 Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants