IIS7 using the URL write module for pan-resolved two-level domain name rewriting? What to do with it

Source: Internet
Author: User
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
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.