Post name permalinks File not found -- Mac High Sierra

I have read the instructions on the Wordpress site, and have read some lengthy posts here but nothing specific to this environment Environment:

  • Mac OS X High Sierra
  • PHP v 7.1.33
  • Apache v 2.4.33
  • Wordpress v 5.4.1

1) Uncommented LoadModule rewrite_module libexec/apache2/mod_rewrite.so in httpd.conf

2) Created a new .htaccess in my wordpress root directory (permissions 666):

# BEGIN WordPress
# The directives (lines) between BEGIN WordPress and END WordPress are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.

IfModule mod_rewrite.c

RewriteEngine On

RewriteBase /wordpress/

RewriteRule ^index\.php$ – [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /wordpress/index.php [L]

/IfModule

# END WordPress

3) Changed httpd.conf

Directory /

AllowOverride All

Require all Granted

/Directory

I have restarted the apache. Shut down and restarted the Mac. Still get a 404 when I set permalinks to Post name.

What am I missing???

Topic mac permalinks Wordpress

Category Web


I think the .htaccess file looks okay. The problem might be flush rewrite rule.

If you go to the backend: Settings >> Permalink page. Just open the page. No need to do any changes.

And then check, It should resolve the problem.

Thank You

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.