How to rewrite URL as subdomain in asp.net without actually creating a subdomain on server
I hope this isn't the first time i'm asking this question on SO. I've URLs in my website and which are using query string values For example: http://foo.com/xyzPage.aspx?barvalue=yehaa to http://yehaa.foo.com/ Please suggest how it can be accomplished without actually creating subdomains on server .. I've IIS 7.5 installed on server machine and using Asp.net 4.0 . Many thanks EDIT following our comments: To access http://foo.com/xyzPage.aspx?barvalue=yehaa using http://yehaa.foo.com/ , you have to use the following rule: <rules> <rule name="Rewrite subdomains"> <match url="^/?$" /> <conditions