Hi, I have latest version of the WordPress and I have setup password for the stats but when I go to mydomain.com/stats/ I do get presented to enter username and password but after that I get 404 not found error page and looks like to be from WordPress. Any suggestions?
Most likely the rewrite rule that WordPress added to the .htaccess file override the access to the stats directory. You can e.g. try to add a rewrite condition so that the WordPress rewriting does not happen for the stats folder.
Thanks for the reply! Here's what I have in /web/stats/.htaccess Code: AuthType Basic AuthName "Members Only" AuthUserFile /var/www/clients/client1/web23/web/stats/.htpasswd_stats require valid-user What's odd is that after testing I was switching between AWstats and Webalizer and today when I logged in I was able to see stats from Webalizer. I've switched to AWstats and I'm being presented with 404 error again. Does that have something to do with Crone job? It needs a day to generate stats for ie. AWstats? What rewrite condition should I put in the above .htpasswd_stats ?
I'm talking about the .htaccess file of the website where WordPress added some code, not the one of the statistics folder.
Ok, here's what's in /web/.htaccess file Code: # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress Yesterday as I said after switching to AWstats I was getting 404 error today I tried again and voila it works and stats are displayed starting as of yesterday's day. Can you please explain that behavior? Also all images on that stats page are not visible (broken links) and it appears that folder does not exist. Attached are the screenshots.
When you switch the stats engine, then statistics with that new engine will be created at the next nightly stats run. Regarding the broken icons, there is probably an alias for the awstats icon directory missing somewhere in the global apache configuration outside of ISPConfig.
Ok, I'm glad the problem is not with .htaccess file and I don't have to add a rewrite condition. I really need to fix AWstats icons because graphs are also not visible which makes stats useless. Can you please help me with fixing it?
Thank you! That fixed my issue! Question for other users. What do you guys prefer, AWstats or Webalizer?