Stats folder : "Woops. Looks like this page doesn't exist"

v1.6.31

hello,

On my hosting, I have all grav files and folders in my root folder (www).

I beleived it was the easyest and more simple way to do. I don’t wan’t to see www.mysite.eu/grav/ but www.mysite.eu/
1/
But maybe it’s not the good way to do, and it’s better to keep the grav folder ?

In the root folder, I have a “stats” folder (www/stats) but I can’t access my stats, and I have a grav message : “Error 404
Woops. Looks like this page doesn’t exist.”

2/
I know this is because of the grav’s htaccess file, but I don’t known how to change it.

Maybe it is somewhere here :

## Begin - Index
# If the requested path and file is not /index.php and the request
# has not already been internally rewritten to the index.php script
RewriteCond %{REQUEST_URI} !^/index\.php
# and the requested path and file doesn't directly match a physical file
RewriteCond %{REQUEST_FILENAME} !-f
# and the requested path and file doesn't directly match a physical folder
RewriteCond %{REQUEST_FILENAME} !-d
# internally rewrite the request to the index.php script
RewriteRule .* index.php [L]
## End - Index

Thank’s

Try this answer from SO

Try this rule before your other rules:

RewriteRule ^(stats)($|/) - [L]

This will end the rewriting process.

I modified it to use only stats