Rewrites not working


I’m getting a 404 on subpages. I’'m following the trobleshooting guidelines at

Using the htaccess_tester.php file, I get the succesful message claiming that “The file .htaccess exists and is readable to the webserver”.

Next I test if rewrites are working by using the simple .htaccess file:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteRule ^.*$ htaccess_tester.php

and I browse to “http:/”, but I get a “Not Found
The requested URL /mypath/htaccess_tester.php was not found on this server.” message.

The trobleshooting guidelines do not explain what to do when this simple .htaccess file fails.

Thanks in advance.

@nsirolli Looks like a similar issue posted some time ago.

It appeared to be an ill configured virtual host.

But as said in my reply to that question, I am a total infrastructure noob, so I might be mistaken…

Have you reviewed the chapter on routing and rewrites in the Grav docs? If you want to work with Grav, you shouldn’t need to modify anything outside its /user folder.


The problem was in the RewriteBase directive in my .htaccess

I was pointing to the path in the server where I have my grav installation; but it had to point to the URL path where my webpage is stored

Thanks anyway for the responses!

1 Like