简体   繁体   English

找不到WordPress永久链接对象

[英]WordPress permalinks object not found

I just installed a legacy WordPress 4.7 project on XAMPP 7.2.5 on macOS High Sierra 10.13.4. 我刚刚在macOS High Sierra 10.13.4的XAMPP 7.2.5上安装了一个旧的WordPress 4.7项目。

I found that I'm able to view the *.php files under /Applications/XAMPP/xamppfiles/htdocs/ . 我发现可以在/Applications/XAMPP/xamppfiles/htdocs/下查看*.php文件。 eg http://127.0.0.1/wp-login.php , and http://127.0.0.1/index.php . 例如http://127.0.0.1/wp-login.phphttp://127.0.0.1/index.php

However, all permalinks of the pages cannot be displayed. 但是,无法显示页面的所有永久链接。

在此处输入图片说明

When I visit one of the permalinks, I get an Object not found! 当我访问其中一个永久链接时, Object not found! error. 错误。

在此处输入图片说明

I've tried the solutions mentioned in this post , but they don't work in my case. 我试过中提到的解决方案, 这个职位 ,但他们并不在我的情况下工作。

What is necessary to make permalinks to be displayed correctly? 使永久链接正确显示需要什么?

Here's my /var/www/html/.htaccess file: 这是我的/var/www/html/.htaccess文件:

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


# 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]
</IfModule>

# END WordPress

Frequently there are problems with permalinks settings. 永久链接设置经常会出现问题。 You should try to change permalink settings according to documentation 您应该尝试根据文档更改永久链接设置

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

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