a:2:{i:0;a:1:{s:4:"data";a:1:{s:7:"entries";a:1:{i:0;a:7:{s:2:"id";s:3:"292";s:5:"title";s:24:"Problems with Commenting";s:11:"displayDate";s:10:"03.05.2007";s:13:"attributeDate";s:10:"2007-03-05";s:4:"body";s:1031:"
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.
";s:13:"numberOfLikes";N;s:10:"bodyBlocks";a:0:{}}}}}i:1;O:25:"yii\caching\TagDependency":3:{s:4:"tags";a:4:{i:0;s:7:"element";i:1;s:29:"element::craft\elements\Entry";i:2;s:40:"element::craft\elements\Entry::section:4";i:3;s:7:"graphql";}s:4:"data";a:4:{s:40:"CraftCMSce35088bdfe0816226cd17fd051a4803";s:21:"0.46162700 1707493692";s:40:"CraftCMS2743a789e8993267a348eee1ee7e4450";s:21:"0.34758900 1706282441";s:40:"CraftCMS2ac34726f299f7e18e449d8e536c67f8";s:21:"0.22771600 1711953912";s:40:"CraftCMS3817d4a648fcfac939af46605323feb0";s:21:"0.44505500 1681499442";}s:8:"reusable";b:0;}}