简体   繁体   English

Wordpress Postname 永久链接在 localhost (xampp) 上不起作用

[英]Wordpress Postname permalink doesn't work on localhost (xampp)

I don't know why but in localhost (xampp) when I choose post name in permalink I can't create a post (it shows an error about JSON ) and Elementor won't load, and I get this error below lots of time when I work on pages.我不知道为什么,但是在本地主机(xampp)中,当我在永久链接中选择帖子名称时,我无法创建帖子(它显示有关 JSON 的错误)并且 Elementor 不会加载,而且我在很多时间下都会收到此错误当我在页面上工作时。 Object not found! Object 未找到!

The requested URL was not found on this server.在此服务器上未找到请求的 URL。 The link on the referring page seems to be wrong or outdated.引用页面上的链接似乎是错误的或过时的。 Please inform the author of that page about the error.请将该错误通知该页面的作者。

If you think this is a server error, please contact the webmaster.如果您认为这是服务器错误,请联系网站管理员。 Error 404 localhost Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.8错误 404 localhost Apache/2.4.43 (Win64) OpenSSL/1.1.1g PHP/7.4.8

Everything is up to date, and php v is 7.一切都是最新的,php v 是 7。

Is mod_rewrite active? mod_rewrite 是否有效? Check your PHP infos with phpinfo();使用 phpinfo() 检查您的 PHP 信息; The.htacces-file should have this content: .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>

And how does your Apache.conf-file look like?您的 Apache.conf 文件看起来如何?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM