locked
XXX.domain.com handler or module RRS feed

  • Question

  • User-1046295913 posted
    I'd like to write a module or handler that will allow a user to enter xxx.domain.com and have the module/handler respond according to the xxx.  For example, if they enter username.domain.com the index could display information based on the username.  I've seen how to do something similar based on the requested page and page extension, but have had trouble finding information about domains.  Is there a way to do this?  Any help is appreciated.
    Friday, March 2, 2007 9:48 AM

Answers

  • User-1853252149 posted

    You're looking for URL Rewiting, there are plenty of samples on the web.  You might also look at ISAPIRewrite, and ISAPI filter for IIS that will do this for any request, not just ASP.NET files.

    Jeff

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, March 2, 2007 10:11 AM