title: htaccess redirect alias to main domain
body: <p>i am trying to redirect from alias domain to main domain for every possible url. I am using htaccess to make my urls more beautiful. This is my example and code I have so far:</p>
  
  <p>Desired outpout:</p>
  
  <pre><code>Alias page: www.stavimedumsvepomoci.cz/forum.html
  gets redirected to the main domain: www.stavbadomusvepomoci.cz/forum.html
  </code></pre>
  
  <p>Now I need this to work for every possible url I can have after the .cz/</p>
  
  <p>So far I have this:</p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{HTTP_HOST} ^(www\.)?stavimedumsvepomoci\.cz [NC]
  RewriteRule ^(.*)$ http://stavbadomusvepomoci.cz/$1 [R,L]
  </code></pre>
  
  <p>Which basically redirects any page from the alias to the main domain front page.
  How can I redirect from alias/every/possible/url to maindomain/every/possible/url.</p>
  
  <p>Thanks for your answers!</p>