How do I make a mod_rewrite rule that uses the sub-domain name to rewrite the URL?
What I want to do is something like this:
Forward requests FROM http://agency1.company.com TO: https://appname.company.com/appname/login.jsp?agencyName=agency1
It doesn't need to be a live proxy; It can just be a meta-refresh type of thing or a basic URL forward. Seems like this would be a common scenerio but I can't find an example on the internet. Lots of examples on the net of a URI rewrite but not many concerning a full URL rewrite (as I am trying to do above).