Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

Stats provided by hosting company within /stats

Started by Muut Archive 10 years ago · 1 replies · 380 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 Deleted User, 9 years ago
0 2287 9 years ago
Archive · by Muut Archive, 9 years ago
2 1500 9 years ago
Archive · by Muut Archive, 9 years ago
2 4748 9 years ago
Archive · by Muut Archive, 9 years ago
1 3564 9 years ago
Archive · by Muut Archive, 9 years ago
3 1624 9 years ago