What am I doing wrong? Why is always returning a 404 error?

site URL: http://localhost/projects/siteab


DocumentRoot "/Users/admin/Sites/"
<Directory "/Users/admin/Sites/">
    Options FollowSymLinks Multiviews
    MultiviewsMatch Any

    AllowOverride All

    Require all granted


<Directory "/Users/admin/Sites/">
    Options Indexes MultiViews FollowSymLinks
    AllowOverride All AuthConfig
    Order allow,deny
    Allow from all


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

# END WordPress

Read more here: Permalink error 404 localhost Mac


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: