| 1. |
Solve : Redirecting users and monitoring stats? |
|
Answer» So I've got a website and I'd notice that some users are visiting the website through a link that is dead. I'd like all users that hit a page that doesn't exist to be redirected to my index.html. For Wordpress, I'd recommend the StatPress plugin. If you have access to the server, I'd more-so recommend Awstats. Maybe you could contact your host about getting it installed if it's not already. The website isn't made in Wordpress, though. I just liked the stats thing they. Can I use it in my PURE XHTML/CSS2 webpage? Also, DirectAdmin seems to come with Awstats. It just doesn't work all that well judging from the zero entries and the errors that I get: Quote Warning: Can't read file "status_http.pm" (status http detection will not work correctly). How do I fix that? Just CHMOD everything to 666? The stats don't seem to go beyond 2011 either. UNLESS I really had no visitors whatsoever, which I REFUSE to believe.Double-check the prerequisites for Awstats are all satisfied. For dead links, you'll probably want an Apache style error handler. E.g. in a .htaccess file: Code: [Select]ErrorDocument 404 /404error.php It's better to redirect to an error page rather than your index page - otherwise a genuine typo in a URL may lead to extreme confusion on the part of users (when visiting) or you (when debugging). While you're at it, you might want to add a 403 handler (access denied).I got rid of it and installed Piwik with the installatron. Piwik is pretty good! |
|