title: URL Rewrite to another server
body: <p>I have a domaine let's say <code>http://www.mydomain.com</code>.<br>
  I have some storage on that domain that does not allow PHP, but allows URL rewriting though .htaccess.</p>
  
  <p>I have another "account" on another server that accepts php.<br>
  I put the content of my website on it, let's say at <code>http://myaccess.myprovider.com/mydomain/</code></p>
  
  <p>So I have just put a <code>.htaccess</code> on the root of mydomain.com to redirect any call from <code>mydomain.com</code> to <code>myaccess.myprovider.com/mydomain</code></p>
  
  <pre><code>RewriteEngine on
  RewriteRule www\.mydomain\.com /myaccess.myprovider.com/mydomain [L]
  </code></pre>
  
  <p>But I can't achieve this to work, I get a 403 forbidden error. Probably a problem in the regexp expression. I don't know. Some simplier example works, like the one found <a href="http://www.expreg.com/rewrite.php" rel="nofollow">Here</a></p>
  
  <p>What should I write or do to make this work ?</p>