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

<p>I added the following to my .htaccess file:</p>

<div class="codeblock"><code>
RewriteEngine on<br />RewriteCond %{HTTP_HOST} ^www.trevor-davis.com$ [NC]<br />RewriteRule ^(.*)$ //trevor-davis.com/$1 [R=301,L] 

</code></div>

<p>That means whenever anyone tried to go to <a href="/">www.trevor-davis.com</a>, they were redirected to <a href="/">trevor-davis.com</a>.</p>

<p>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 <a href="/">www.trevor-davis.com</a>. For some reason, this broke the comments. I changed it to <a href="/">trevor-davis.com</a>, and my quest to abolish the www continues.</p>