Links lead to Object not found! Apache/Windows

Hello,

I have my setup ready, when I run local host it opens my homepage and it works fine. But when I click on header navigation link it returns me Object not found error.

I run Windows/Apache setup.

This is my .env file:

DB_NAME=wondermins
DB_USER=root
DB_PASSWORD=

# Optional variables
DB_HOST=localhost
DB_PREFIX=

WP_ENV=development
WP_HOME=http://localhost
WP_SITEURL=http://localhost/wp/

and my httpd.vhosts.conf

<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host.example.com
    DocumentRoot "C:/xampp/htdocs/wondermins/web"
    ServerName localhost
    ServerAlias localhost
    ErrorLog "logs/dummy-host.example.com-error.log"
    CustomLog "logs/dummy-host.example.com-access.log" common
</VirtualHost>

My DocumentRoot and DocumentDirectory inside of httpd.conf points to:

DocumentRoot "C:/xampp/htdocs/wondermins/web"
<Directory "C:/xampp/htdocs/wondermins/web">

I would appreciate any help. Thanks! :slight_smile:

AllowOverride None” and change it to “AllowOverride All” in httpd.conf

And I have this in .htaccess file :

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

# END WordPress

That is solution which works for me. Thanks