<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: Wordpress Comments Messed Up with Redirection &#8230; and the Hack</title>
	<atom:link href="http://www.reallyvirtual.com/wordpress-comments-messed-up-with-redirection-and-the-hack/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>Procrastinating Polluting Programming Pakistani Pirate Parent</description>
	<pubDate>Thu, 08 Jan 2009 11:16:55 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Idetrorce</title>
		<link>http://www.reallyvirtual.com/wordpress-comments-messed-up-with-redirection-and-the-hack/comment-page-1/#comment-346</link>
		<dc:creator>Idetrorce</dc:creator>
		<pubDate>Sat, 15 Dec 2007 17:17:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.reallyvirtual.com/index.php/wordpress-comments-messed-up-with-redirection-and-the-hack#comment-346</guid>
		<description>very interesting, but I don't agree with you 
Idetrorce</description>
		<content:encoded><![CDATA[<p>very interesting, but I don&#8217;t agree with you<br />
Idetrorce</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ReallyVirtual</title>
		<link>http://www.reallyvirtual.com/wordpress-comments-messed-up-with-redirection-and-the-hack/comment-page-1/#comment-9</link>
		<dc:creator>ReallyVirtual</dc:creator>
		<pubDate>Thu, 19 Jul 2007 20:05:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.reallyvirtual.com/index.php/wordpress-comments-messed-up-with-redirection-and-the-hack#comment-9</guid>
		<description>UPDATE: after moving to linux hosting, I can finally restore the hack to its original code.</description>
		<content:encoded><![CDATA[<p>UPDATE: after moving to linux hosting, I can finally restore the hack to its original code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ReallyVirtual</title>
		<link>http://www.reallyvirtual.com/wordpress-comments-messed-up-with-redirection-and-the-hack/comment-page-1/#comment-5</link>
		<dc:creator>ReallyVirtual</dc:creator>
		<pubDate>Sun, 15 Jul 2007 18:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.reallyvirtual.com/index.php/wordpress-comments-messed-up-with-redirection-and-the-hack#comment-5</guid>
		<description>I was told by two &lt;a href='http://pakspectator.blogspot.com/' target='_blank' rel="nofollow"&gt;Pak Spectator&lt;/a&gt; readers (thanks guys) that the comments here are not working. My bad. I never checked them after setting up the domain redirection, so I spent an hour on the problem and found out (and fix(hack)ed the issue).
For those of you that are interested or facing the same issues, it seems that the comment form (from comments.php in WordPress) sends a 'POST' request to wp-comments-post.php, which gets lost in redirection and mutates into a 'GET' request. The comments.php also uses the blog domain (www.reallyvirtual.com in this case), but since the redirection is posting on a subdomain (rv.cypherone.com), WordPress rejects it.
The workaround: Edit your theme's comments.php and hardcode the form 'action' domain to the ultimate destination domain, and then comment out the first block wp-comments-post.php so that WordPress bypasses the POST check. Finally, you may have to search replace all $_POST with $_GET.
This leaves the door wide open for comment spammers, but at least the comments are working now, so I can put off a hosting move for another few weeks.</description>
		<content:encoded><![CDATA[<p>I was told by two <a href='http://pakspectator.blogspot.com/' target='_blank' rel="nofollow">Pak Spectator</a> readers (thanks guys) that the comments here are not working. My bad. I never checked them after setting up the domain redirection, so I spent an hour on the problem and found out (and fix(hack)ed the issue).<br />
For those of you that are interested or facing the same issues, it seems that the comment form (from comments.php in WordPress) sends a &#8216;POST&#8217; request to wp-comments-post.php, which gets lost in redirection and mutates into a &#8216;GET&#8217; request. The comments.php also uses the blog domain (www.reallyvirtual.com in this case), but since the redirection is posting on a subdomain (rv.cypherone.com), WordPress rejects it.<br />
The workaround: Edit your theme&#8217;s comments.php and hardcode the form &#8216;action&#8217; domain to the ultimate destination domain, and then comment out the first block wp-comments-post.php so that WordPress bypasses the POST check. Finally, you may have to search replace all $_POST with $_GET.<br />
This leaves the door wide open for comment spammers, but at least the comments are working now, so I can put off a hosting move for another few weeks.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
