I've setup a redirect in .htaccess
to consolidate example.com
to www.example.com
traffic on our Apache server.
Looks like this:
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^centerline\.net$ [NC]
RewriteRule ^(.*)$ http://www.centerline.net/$1 [R=301,L]
Works as expected, except for the blog.
If I go to http://www.centerline.net/blog
, I get the blog fine.
If I go to http://centerline.net/blog
, it redirects to the home page (which is the 404 default action).
I tried commenting out the two lines to consolidate centerline.net
to www.centerline.net
, and I still can't get to the blog via centerline.net/blog
.
There's nothing else in the .htaccess
related to the blog URL. For the blog, there are several lines that Wordpress inserted into the .htaccess, but commenting those out makes no difference. Just in case, that code is:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Any ideas where else to look? Or something I'm missing?