I have seen a ton of examples for URL rewrites based on the subdomain, but I am trying to do URL rewrites based on the domain name itself, specifically serve content from a subfolder with the domain name in it.
For instance, I'd like
http://www.site1.com/sub/folders/long-html-filename.htm to be rewritten to either /sites/www.site1.com/sub/folders/long-html-filename.htm or http://www.masterdomain.com/sites/www.site1.com/sub/folders/long-html-filename.htm
I've been able to do a lot of the rewrite regex on my own, but I am hitting a brick wall on this one.
Thanks!
Kevin - you were close. The IIRF author got me the rest of the way there:
Now I am just trying to figure out how to combine that with a forced-WWW RedirectRule.
Another stumbling block...I have this:
But it doesn't seem to be working, I am just getting a timeout.