I'd like to use awstats to track usage of a URL shortener I'm using.

Unfortunately, awstats treats log records with a non 200 status as an error, and excludes them from statistics.

Is there a way to get awstats to treat 301s as 200s for stats tracking?

link|improve this question

feedback

1 Answer

up vote 1 down vote accepted

Figured it out. In the configuration file:

ValidHTTPCodes="200 304 301"

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.