Posts Tagged ‘.htaccess’

Moved

Wednesday, April 16th, 2008

As a minor housekeeping note, my blog has moved from the sub-domain blog.solidhex.com to the parent directory, www.solidhex.com. There should be no service interruptions and everything should redirect automatically as I have setup a 301 redirect in my htaccess file to ensure no broken links. If anything goes wrong, please let me know!

For the curious, this is what I added to my .htaccess file to get it to work:

RewriteCond %{HTTP_HOST} ^blog\.solidhex\.com [NC]
RewriteRule ^(.*) http://www.solidhex.com/$1 [R=301,L]

Therefore, the entire .htaccess file (with WordPress settings included) is:


RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^blog\.solidhex\.com [NC]
RewriteRule ^(.*) http://www.solidhex.com/$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

I am not sure if that’s 100% accurate, but so far, so good!