I just installed a legacy WordPress 4.7 project on XAMPP 7.2.5 on macOS High Sierra 10.13.4.
I found that I'm able to view the *.php
files under /Applications/XAMPP/xamppfiles/htdocs/
. eg http://127.0.0.1/wp-login.php
, and http://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!
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:
<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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.