2 different sites in one place
<p>Im trying to have 2 different sites in one place, first site with wordpress and second one without wordpress, when visitors come from affiliate.webmediamagazine.com to be loaded wordpress, and direct to be loaded another custom index, I'm using the codes below:</p>

<p><a href="http://affiliate.webmediamagazine.com/index.php" rel="nofollow">http://affiliate.webmediamagazine.com/index.php</a></p>

<pre><code>&lt;form action='http://www.webmediamagazine.com' method='post' name='frm'&gt;
&lt;input type='hidden' name="affiliate" value="yes"&gt;
&lt;/form&gt;
&lt;script language="JavaScript"&gt;
document.frm.submit();
&lt;/script&gt;
</code></pre>

<p><a href="http://webmediamagazine.com/index.php" rel="nofollow">http://webmediamagazine.com/index.php</a></p>

<pre><code>&lt;?php 
$affiliate = $_POST['affiliate'];
if ($affiliate == yes) {include 'indexwp.php';} 
else {include 'indexcustom.php';}
?&gt;
</code></pre>

<p>indexwp.php is wordpress default index.php
indexcustom.php is a simple php script.</p>
