I have an Apache web server that uses virtual hosting that I would like a rewrite rule for.
Simple virtual hosting, and I would like
(where the directory "/whatever" is not necessarily static and could be "/" or "/dir1" or "/dir2" or "/something.php?var=value"
as long as the trailing file or path info stays the same in the rewritten URL)
Virtual hosting with 1 or more aliased domains, and I would like any of:
If scenario 1 and scenario 2 need different rewrite rules, that is fine. I just spent about 30 minutes looking over mod_rewrite and the more I read, the more I decide this would take too long to figure out on my own.