[英]Wordpress localhost results in 404 pages when changing permalink structure to postname
[英]Wordpress Postname permalink doesn't work on localhost (xampp)
我不知道为什么,但是在本地主机(xampp)中,当我在永久链接中选择帖子名称时,我无法创建帖子(它显示有关 JSON 的错误)并且 Elementor 不会加载,而且我在很多时间下都会收到此错误当我在页面上工作时。 Object 未找到!
在此服务器上未找到请求的 URL。 引用页面上的链接似乎是错误的或过时的。 请将该错误通知该页面的作者。
如果您认为这是服务器错误,请联系网站管理员。 错误 404 localhost Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.8
一切都是最新的,php v 是 7。
mod_rewrite 是否有效? 使用 phpinfo() 检查您的 PHP 信息; .htacces 文件应包含以下内容:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
您的 Apache.conf 文件看起来如何?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.