Iis7 uses the urlwrite module to rewrite the second-level domain name of pan resolution? What should I do?

Source: Internet
Author: User
Iis7 uses the urlwrite module to implement second-level domain name rewriting for wildcard DNS ?? How to implement it? The requirements for second-level domain name rewriting are as follows ??
How to implement it?
Second-level domain name rewriting
Required:
1.www.site.com/cccare all rewritten to www.site.com/index.php/ccc

2.ccc.site.com rewrite to ccc.site.com/index.php/ccc

I wrote 1 below, but 2 has a problem. I don't know what to do for help
XML code
  
  
      
           
                
                     
                      
                          
                           
        
                                           
                      
                          
                           
        
                                           
                  
                 
                     
                  
             
            
                
                     
                                  
             
        
   
  


------ Solution --------------------
When ccc.site.com is rewritten to index. php/ccc, the index. php page is displayed. what's wrong?
------ Solution --------------------
It seems that the regular expression is not correct. it is better to change it to this, but you can also write it like this:

------ Solution --------------------
How is the ccc column under index. php? Don't understand...
Is index. php dynamically display the ccc column based on parameters? Or is there the index. php/ccc directory on the website?
------ Solution --------------------
If you disable rewrite temporarily, enter ccc.site.com/index.php/ccc.
What is the same effect?
------ Solution --------------------
If you are sure that the entered address is the same as the rewritten address, both are: ccc.site.com/index.php/ccc
However, if you see different results, it may be a problem with the php program. it may directly read the original URL before rewriting.
However, this is unlikely. Are you sure you can see different effects by directly pasting the rewritten address to the address bar?

------ Solution --------------------
Your wildcard parsing rules and the rules for www.site.com seem very confusing. you should first remove "Imported Rule 1" and try again.
------ Solution --------------------
Url rewriting does not change the content in the browser's address bar.

After reading it for a long time, I didn't see what your requirements are. I only saw 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.