Forum Moderators: phranque
I'm using some standard htaccess rewrite code to remove www. from URLs.
Works great on www.example.com/filename.htm
Does not do anything on www.example.com/blog/
Never experienced this before, is there some kind of directive that could be interfering?
I probably should mention the subfolder is wordpress
but we are just talking the wordpress base, not any virtual directories.
it's own htaccess just has the standard
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule . /blog/index.php [L] That wouldn't interfere would it?
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://example.com/$1 [R=301,L]RewriteCond %{REQUEST_URI} ^/?blog.* [NC]
RewriteCond %{REQUEST_FILENAME}!-f
RewriteCond %{REQUEST_FILENAME}!-d
RewriteRule . /blog/index.php [L]
problem solved!