So in the quest to abolish the www from my URL, I seemed to have broken Movable Type comments.

I added the following to my .htaccess file:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.trevor-davis.com$ [NC]
RewriteRule ^(.*)$ //trevor-davis.com/$1 [R=301,L] 

That means whenever anyone tried to go to www.trevor-davis.com, they were redirected to trevor-davis.com.

My co-worker, Adrian, told me today that when he was trying to add a comment to one of my entries, he got an error that said "No entry_id". After much googling, I finally determined it was because of the URL rewriting. I could not really find a solution, but I finally went into the mt-config.cgi file and found out that when I had setup the site, I set it up with www.trevor-davis.com. For some reason, this broke the comments. I changed it to trevor-davis.com, and my quest to abolish the www continues.