I have to set RewriteBase depending on the domain, right now RewriteBase is set to ~/myusername/folder/site.com, if someone opens http://mydomain.com it redirects to (shared HTTPS) https://something.hostingproveder/~myusername/folder/site.com , 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...
Is there something in .htacces that can check which domain is used and set RewriteBase depending on domain.