Even my domain name is a killing word.

A persistently annoying problem I have been having with the site is solved--maybe.

I like to rummage through the log files and see what's what. Aside from making sure nothing's about to explode, I like to see how people are finding my site. This is, for example, how I learn about the teeming masses needing to know why being on time is so important.

However, since the dawn of time, the logs have been... confused. Hosting on NearlyFreeSpeech, my site has a public name that I have registered (sigspace.net) and a true, (not so) secret name (sig.nfshost.com)--it's kind of a Muad'dib-Usul sort of thing. Until very recently, sig.nfshost.com would load the index page like normal, though if you clicked on links, it would load the sigspace.net equivalent.

Unfortunately, both were independently indexed by GoogleBot--they're considered separate sites. Worse (from my perspective), since Drupal "knows" that the site is truly called "www.sigspace.net," it considers any links on sig.nfshost.com to be external referrers. From there, it degenerates to chaos and suffering. The details are not important.

The sum of the mess is that it was playing havoc with my logs and confusing Google.

Now, I had already used .htaccess to configure an automagic redirect from http://sigspace.net to http://www.sigspace.net. It had not occurred to me until this afternoon that I could mess with .htaccess further and make it redirect http://sig.nfshost.com to http://www.sigspace.net.

Anyway, I have made changes and while it seems to work for me, other people might run into issues. So far, the only thing I've noticed is that any URL from the sig.nfshost.com domain will resolve to the main page of http://www.sigspace.net; if someone knows a way to resolve sig.nfshost.com/node/123 to www.sigspace.net/node/123, I'd love to know it.



The Intarweb must flow! :-)

The Intarweb must flow! :-)


Options +FollowSymLinks
RewriteEngine on

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

RewriteCond %{HTTP_HOST} ^sig.nfshost.com [NC]
RewriteRule ^(.*)$ http://www.sigspace.net/$1 [L,R=301]


You're awesome.