title: .htaccess Redirect not redirecting for domain alias
body: <p>I have stumbled upon a unique problem.</p>
  
  <p>Site - <a href="http://example.com" rel="nofollow">http://example.com</a></p>
  
  <p>Blog - <a href="http://example.net" rel="nofollow">http://example.net</a></p>
  
  <p>Now the blog(example.net) was moved to example.com/example_blog (for unknown reasons it was done using domain alias).</p>
  
  <p>The following .htaccess was added to route <a href="http://example.net/page" rel="nofollow">http://example.net/page</a> to <a href="http://example.com/example_blog/page" rel="nofollow">http://example.com/example_blog/page</a> </p>
  
  <pre><code>RewriteEngine On
  
  Options -Indexes
  
  RewriteCond %{HTTP_HOST} ^www\.example\.net$ [OR]
  RewriteCond %{HTTP_HOST} ^example\.net$
  RewriteRule (.*) http://example.com/example_blog/$1 [R=301,L]
  
  RewriteCond %{REQUEST_FILENAME} -s [OR]
  RewriteCond %{REQUEST_FILENAME} -l [OR]
  RewriteCond %{REQUEST_FILENAME} -d
  RewriteRule ^.*$ - [NC,L]
  RewriteRule ^.*$ index.php [NC,L]
  </code></pre>
  
  <p>Now here is the problem since example.net is an alias of example.com I am able to access</p>
  
  <p><a href="http://example.net/folder_and_file_from_example.com" rel="nofollow">http://example.net/folder_and_file_from_example.com</a> </p>
  
  <p>I would expect <a href="http://example.net/folder_and_file_from_example.com" rel="nofollow">http://example.net/folder_and_file_from_example.com</a> to be redirected to <a href="http://example.com/example_blog/folder_and_file_from_example.com" rel="nofollow">http://example.com/example_blog/folder_and_file_from_example.com</a> (which would show a 404 error)</p>
  
  <p>I hope I explained it clearly enough. Any help appreciated.</p>