Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Stats provided by hosting company within /stats

Started by Muut Archive 10 years ago · 1 replies · 444 views
10 years ago

Hi.

I have a site running on Dreamhost and one of the things they offer is a full set of stats which they provide under your current domain; e.g. yoursite.tld/stats

Is there any way to stop Grav trying to serve /stats and producting an error and just pass this request to the underlying hosting provision?

I am also looking to see if there's a way to move the stats page elsewhere.

Thanks for any help.
Andy

10 years ago

OK, ignore me.. I made the issue somewhat more difficult than it really needed to be. I was looking for some clever grav routing thingie when I should have just gone back to basics.

That being adding the following within .htaccess;

TXT
RewriteBase /
RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html).*$ [NC]
RewriteRule . - [L]

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 673 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago