I'm trying to set up mod_rewrite on my new website, and have run into one issue that I can't find the solution for.
The URL of my website is http://www.mydomain.com, but on my local testing server it's http://localhost/mydomain. How to write the base href tag, in order to make it work in both places?