{"authorId":"1","title":"Problems with Commenting","slug":"problems-with-commenting","postDate":1173125370,"expiryDate":null,"enabled":"1","fields":{"2":"<p>So in the quest to abolish the www from my URL, I seemed to have broken Movable Type comments.<\/p>\n\n<p>I added the following to my .htaccess file:<\/p>\n<!--more-->\n<div class=\"codeblock\"><code>\nRewriteEngine&nbsp;on<br \/>RewriteCond&nbsp;%&#123;HTTP_HOST&#125;&nbsp;^www.trevordavis.net$&nbsp;&#91;NC&#93;<br \/>RewriteRule&nbsp;^(.*)$&nbsp;http:\/\/trevordavis.net\/$1&nbsp;&#91;R=301,L&#93;&nbsp;\n\n<\/code><\/div>\n\n<p>That means whenever anyone tried to go to <a href=\"\/\">www.trevordavis.net<\/a>, they were redirected to <a href=\"\/\">trevordavis.net<\/a>.<\/p>\n\n<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.trevordavis.net<\/a>. For some reason, this broke the comments. I changed it to <a href=\"\/\">trevordavis.net<\/a>, and my quest to abolish the www continues.<\/p>","14":{"old_id":{}}}}