cPanel AWStats Mod_Rewrite
Feb 22nd, 2008 by Leonard Ghazarian |
Email This Post
|
Print This Post
Here is a quick way to access your AWStats (a statistics software that comes with cPanel control panel with your hosting account).
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)?(.*) [nc]
RewriteRule ^/?stats(/?)$ http://%{HTTP_HOST}:2082/awstats.pl?config=%2
RewriteCond %{HTTP_HOST} ^(www\.)?(.*) [nc]
RewriteRule ^/?stats(/?)$ http://%{HTTP_HOST}:2082/awstats.pl?config=%2
Allows you to view your stats without going to cpanel. To see your stats after adding the above code to your .htaccess file, go to:
yourdomain.com/stats
You will still need the user name and password of the account to access the stats. However you skip the control panel part and go straight to your AWStats.
