title: change RewriteBase depending on domain
body: <p>I have to set RewriteBase depending on the domain, right now RewriteBase is set to ~/myusername/folder/site.com, if someone opens <a href="http://mydomain.com" rel="nofollow">http://mydomain.com</a> it redirects to (shared HTTPS) <a href="https://something.hostingproveder/~myusername/folder/site.com" rel="nofollow">https://something.hostingproveder/~myusername/folder/site.com</a> , now I want to use my real domain without https and if I'm using it I need to change RewriteBase to / or to completely delete it... </p>
  
  <p>Is there something in .htacces that can check which domain is used and set RewriteBase depending on domain. </p>