Hello, I'm having a very strange problem. I have a WordPress blog set up in a subfolder (root/blog/) and have a .htaccess file in the root folder that is removing the "www" from my domain. So if you go to http://www.domain.com it will switch it to domain.com. Now when I access the wordpress blog with domain.com/blog/ it works just fine. But if I access it with http://www.domain/blob/ it redirects to my cgi folder for some reason. I've played around with .htaccess files but no luck. Can someone help? Note: My root site isn't a blog. It's a basic html site.
Here's the content of my files:
Root .htaccess:
================
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^domain\.com$
RewriteRule (.*) http://domain.com/$1 [R=301,L]
</IfModule>
Root/blog .htaccess:
================
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /blog/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]
</IfModule>
# END WordPress