• sunny

    (@sunnyflorida)


    I think I’ve tried everything but cannot get Post name permalinks to work.
    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???

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @sunnyflorida ,

    Can you please specify the owernship of the .htaccess file ?

    Thread Starter sunny

    (@sunnyflorida)

    Trying this out I have installed a second wordpress instance documentroot/wordpress and documentroot/xxxwordpress

    The owner is my mac user ID for instance documentroot/wordpress

    The owner is _www for instance documentroot/xxxwordpress

    Both are set to 666 permissions.

    What should be the owner and permissions?

    Hi @sunnyflorida ,

    Here are the ideal ownership and permission details for .htaccess file:

    • Owner: PC user ID (in your case it is mac user id)
    • Group: www-data (this is group or user of apache)
    • File permissions: 664

    Please set these permission once. Then navigate to wp-admin and save the permalink settings once again.

    Then see if the issue gets resolved.

    Let us know your feedback.

    Thread Starter sunny

    (@sunnyflorida)

    Is it possible that the owner and/or group owner on Mac is _www?

    All the wordpress files at the wordpress root are my mac user ID and the group is 501!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post name permalinks File not found’ is closed to new replies.