Support » Localhost Installs » localhost/admin not found

  • danielhoe

    (@danielhoe)



    I have installed WordPress locally with wp-cli on macOS 10.11 including macOS Apache. localhost/wp-admin works fine. Is it normal that I cannot reach my install with localhost/admin? I would appreciate your help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Volunteer

    Yes. The admin is at wp-admin, not admin. You should get a 404 on the latter.

    danielhoe

    (@danielhoe)

    I know, but when I try to access my projects online, /admin works and redirects to wp-login.php.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Support Volunteer

    It may be that .htaccess is ignored on your localhost setup.

    In Apache’s config, try adding this:

    <Directory /path/to/wordpress/root>
      AllowOverride All
    </Directory>

    then restart apache.

    danielhoe

    (@danielhoe)

    Success. Modified /etc/apache2/users/username.conf and now it works. Thank you for your quick help Steve.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘localhost/admin not found’ is closed to new replies.