title: RewriteRule for mapping x.domain.com to y.domain.com
body: <p>Is it possible to redirect all requests to <strong>x.domain.com/.*</strong> to <strong>y.domain.com/.*</strong> WITHOUT letting this redirection be visible in the url?</p>
  
  <p>I have unsuccessfully tried several things in .htaccess. Just specifying the [L] flag still shows this redirection in the url (as it does when I use the [R] flag additionally).</p>
  
  <p>EDIT: as somebody claimed there being no reason for this, let me give some more information :)
  I have one nice url: x.domain.com , which is well known.
  Then there are a number of other domains: spring.domain.com , summer.domain.com , autumn.domain.com, winter.domain.com .
  Depending on the time of the year, a specific y.domain.com becomes the current one. The x.domain.com should always map to the current one.</p>
  
  <p>EDIT2:
  I'll write here, as the code isn't nicely rendered in the comments...
  I tried what Arjan suggested:</p>
  
  <pre><code>RewriteCond %{HTTP_HOST} ^x.domain.com$
  RewriteRule ^(.*)$ /path/to/y.domain.folder/$1
  </code></pre>
  
  <p>Unfortunatly though this keeps redirecting forever. :(</p>
  
  <pre><code>Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.
  </code></pre>
  
  <p>Putting the [R] flag behind, I see in the url something like:</p>
  
  <pre><code>http://x.domain.com/path/to/y.domain.folder/path/to/y.domain.folder/path/to/y.domain.folder/ ... 
  </code></pre>
  
  <p>Any suggestions?</p>
  
  <p>Now that I can read the errorlogs, I can give a direct response, as what a possible 500 error refers to.</p>