title: Using .htaccess to allow access only from one domain
body: <p>My case is this, I have a splash screen in my main domain (1) with a button with a link to my subdomain to accept and enter my site thats located in wordpress in the subdomain(2).</p>
  
  <ul>
  <li>(1) www.maindomain.com</li>
  <li>(2) www.maindomain.com/wordpress/</li>
  </ul>
  
  <p>But if the visitors type the path to my subdomain (www.maindomain.com/wordpress/) they bypass my splash screen and I dont want this to happens so...</p>
  
  <p>I am actually trying to use this code in .htaccess file located in wordpress folder (2) but it did not work, actually it denies access from everywhere.</p>
  
  <pre><code>AuthUserFile /dev/null
  AuthGroupFile /dev/null
  AuthName OnlyFromUNO
  
  &lt;Limit GET&gt;
  order deny,allow
  deny from all
  allow from .maindomain.com
  &lt;/Limit&gt;
  </code></pre>
  
  <p>Actually I get the Forbidden access to my main and my subdomain (typed directly)</p>
  
  <p>I will be glad to get any help, I checked others alternatives in this site and other but neither worked</p>