Hello!
I have been working with apache's mod_rewrite module and IIS's ISAPI_rewrite modules recently and for the first time in a while I have discovered a dilemma I just couldn't solve myself. I've looked on the documentation for rewrite mods and things, but I think maybe this idea is so strange it hasn't been documented very much before.
Is this possible with mod_rewrite/isapi_rewrite? Any help, ideas, or suggestions would be greatly appreciated.
It is also worth noting that this same document root is being accessed by 5 different hostnames. Also, in a perfect situation, the mod_rewrite script would use HTTP_HOST to differentiate between hosts.
I have been working with apache's mod_rewrite module and IIS's ISAPI_rewrite modules recently and for the first time in a while I have discovered a dilemma I just couldn't solve myself. I've looked on the documentation for rewrite mods and things, but I think maybe this idea is so strange it hasn't been documented very much before.
Here is my dilemma: (It is rather simple)
http://mywebsite.com/sites/site1/index.php
In a perfect situation, would turn into this:
http://mywebsite.com/index.php
http://mywebsite.com/sites/site1/index.php
In a perfect situation, would turn into this:
http://mywebsite.com/index.php
Is this possible with mod_rewrite/isapi_rewrite? Any help, ideas, or suggestions would be greatly appreciated.
It is also worth noting that this same document root is being accessed by 5 different hostnames. Also, in a perfect situation, the mod_rewrite script would use HTTP_HOST to differentiate between hosts.