Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

Stats provided by hosting company within /stats

Started by Muut Archive 9 years ago · 1 replies · 307 views
9 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

9 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 Deleted User, 9 years ago
0 1341 9 years ago
Archive · by Muut Archive, 9 years ago
2 928 9 years ago
Archive · by Muut Archive, 9 years ago
2 4057 9 years ago
Archive · by Muut Archive, 9 years ago
1 2942 9 years ago
Archive · by Muut Archive, 9 years ago
3 1115 9 years ago