Home > System Administration > Fix Htaccess File

Fix Htaccess File

November 17th, 2009

I’m using the Vivvo CMS (http://vivvo.net) and I’m currently having some issues with the .htaccess file.

I had my webhost symlink my webalizer stats to show a “stats” folder on my websites. The problem is when trying to exclude this “stats” folder from the rewrite there is a conflict with one line.

If I remove that one line the “stats” folder shows on the web and I don’t get a 404 error. However, if that line is removed then there is a different section with a 404 error on my site (the authors listing page).

So I need someone to adjust the htaccess file so the “stats” folder shows and there are no 404 errors on the site due to changes in the file.

This should be a 5 minute job if you know about htaccess files and rewrites.

See the file below with my note next to the line that when removed causes another 404 error.

Options All -Indexes
ErrorDocument 404 /404.php
FileETag MTime Size

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !/stats
RewriteRule ^sitemap.xml$ index.php [L]
RewriteRule ^(.*)(.html|.htm)$ index.php [L]
RewriteRule ^(.*)(.rss|.atom|.txt)$ index.php [L]
RewriteRule ^([^.]*)/?$ index.php [L] <—- If Removed the “stats” folder shows. However, there will be another 404 error on my site

</IfModule>


Fix Htaccess File