分页: 1 / 1

[已解决]启用永久链接后页面404错误

发表于 : 2016年 4月 30日 15:47
jazzi
Typecho 1.0稳定版,环境支持rewrite,在后台开启永久链接功能后,新文章无法发布,旧文章无法显示,均出现404错误。

Not Found
The requested URL /action/contents-post-edit was not found on this server

Re: 启用永久链接后页面404错误

发表于 : 2016年 4月 30日 20:56
jazzi
问题解决了,在根目录下创建如下内容的 .htaccess

代码: 全选

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>


资料来源:http://blog.csdn.net/noway/article/details/7567353

Re: [已解决]启用永久链接后页面404错误

发表于 : 2017年 7月 17日 21:55
charlesli
mark,用上了