admin管理员组文章数量:1429049
I can add new pages and preview them, but once I upload them I get a 404 "Not found" error. I thought it's a problem with my permalinks, so I followed some tutorials to fix this like /. Had the same settings, but I couldn't find the httpd.conf
file. I tried testing the configuration or finding it with apachectl configtest
and find httpd.conf
. Here's my .htaccess
file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
It's in the root folder of my webiste with the permissions 644. This is what's happening when uploading a new page (preview > update > error):
If I go back to the editor and click preview again I get the same error.
Edit: I was looking for other tutorials and figured the files would have the wrong permissions. So I did a bit of testing and changed the permissions of .htaccess
, went to Permalinks and saw that it's not writable anymore. I changed the permissions again, switched from "Post name" to "Plain" (default) and it works. But leaving it like this basically doesn't allow me to use Permalinks anymore.
本文标签: permalinksPage preview is shownupdating page gives 404 error
版权声明:本文标题:permalinks - Page preview is shown, updating page gives 404 error 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745535787a2662264.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论