IIS7 using the URL write module to implement pan-resolved two-level domain name rewriting??
How to do it?
Two-level domain rewrite
Be realistic
1.WWW.SITE.COM/CCC all rewritten to WWW.SITE.COM/INDEX.PHP/CCC
2.ccc.site.com Rewrite to CCC.SITE.COM/INDEX.PHP/CCC
I wrote the following 1 implementation but 2 how all have problems. Do not know how to help
XML Code
------Solution--------------------
Ccc.site.com rewrite into INDEX.PHP/CCC, is to display index.php This page, there is something wrong place?
------Solution--------------------
The regular seems to be not correct, change to this is better, but you can write as well through:
------Solution--------------------
What is the CCC column under index.php? Don't know ...
is index.php according to the parameter dynamic display CCC this column? Or is there a INDEX.PHP/CCC directory on the website?
------Solution--------------------
Then you temporarily disable rewrite, direct input: CCC.SITE.COM/INDEX.PHP/CCC
See the effect is the same?
------Solution--------------------
If you are sure that the address entered directly is the same as the rewrite address, it is: CCC.SITE.COM/INDEX.PHP/CCC
But the effect is different, it could be a problem with the PHP program, it may go directly to read the original URL before rewriting.
However, this is not very likely, you are sure that the rewritten address directly into the address bar can see different effects?
------Solution--------------------
Your pan-analytic rules and rules for www.site.com look confusing, so you get rid of the "imported Rule 1" and try
------Solution--------------------
URL rewriting does not change the contents of the browser address bar
Looked for a long while, also did not see your demand is what, only saw the Path_info