Is this .htaccess correct?


My monthly stats only for this domain send me to a 404 error which leads me to believe that it’s something to do with my htaccess. As it currently stands gives me a 404 after I login but I can then manually got to and from there I can access the long term and daily stats, but only June 2008 works in the monthly, the others 404.

In the control panel I have all of the stats enabled.

Here is my htaccess in the webroot:

Options +ExecCGI
Action php-cgi /cgi-bin/php.cgi
AddHandler php-cgi .php

<FilesMatch “^php5?.(ini|cgi)$”>
Order Deny,Allow
Deny from All
Allow from env=REDIRECT_STATUS

RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^/(stats|failed_auth\.html).*$ [NC] RewriteRule . - [L]

ErrorDocument 404 /forums/404.php

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !forums/
RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ forums/vbseo.php?vbseourl=$1&vbseorelpath=…/&%{QUERY_STRING} [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|redir.php|vbseo_sitemap|autotagger_ajax.php|404.php)

RewriteCond %{REQUEST_FILENAME} !forums/
#RewriteRule ^(.*.php)$ forums/vbseo.php?vbseourl=$1&vbseorelpath=…/&%{QUERY_STRING} [L]

Tenstones Gaming Community


have you tried removing the forward slash on this line?

RewriteCond %{REQUEST_URI} ^/(stats|failed_auth.html).*$ [NC]

track7 - my dream-hosted site