title: .htaccess redirection of a subdomain to a domain, while keeping the links
body: <p>I have this URL:</p>
  
  <pre><code>http://subdomain.maindomain.com
  </code></pre>
  
  <p>and all the links are already shared like this:</p>
  
  <pre><code>http://subdomain.maindomain.com/index.php?route=product/product&amp;product_id=xxx
  http://subdomain.maindomain.com/index.php?route=product/category&amp;path=xxx
  http://subdomain.maindomain.com/index.php?route=information/information&amp;information_id=xxx
  </code></pre>
  
  <p>Now the subdomain is no longer in use, and all the content is transferred in the maindomain, so I want when someone clicks some of those links, the links to be opened like this:</p>
  
  <pre><code>http://maindomain.com/index.php?route=product/product&amp;product_id=xxx
  http://maindomain.com/index.php?route=product/category&amp;path=xxx
  http://maindomain.com/index.php?route=information/information&amp;information_id=xxx
  </code></pre>
  
  <p>i.e. only the subdomain to be redirected to the domain, but the links to be left as they are. Any chance that this can be done?</p>
  
  <p>Thanks.</p>