Url Rewrite Rules Help...

Discussion in 'Visual Studio' started by loadthevan, Oct 20, 2008.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Hi All,

    I am new to DASP and have a situation I could really use some help with! Basically, I have my root domain with an asp.net site published to it and I also have
    a domain pointer and have a subdirectory that contains my second application. so I have two apps...

    I have setup an index.aspx in the rootthat redirects so that when www.domain2.co.uk is accessed the user is redirected to the subdirectory that contains app2.

    at the moment when domain2 is accessed the browser shows www.domain2.co.uk/app2/default.aspx

    I would like the following behavoir:

    when www.domain1.co.uk is accessed IIS Serves the root app. This is obviously the default action and is working ok.
    when www.domain2.co.uk is accessed IIS Serves up root/app2/default.aspx whilst displaying www.domain2.co.uk/default.aspx.

    and Ideally this behavoir would be persisted accross the rest of the site.

    I think I need to rewrite the urls but I am wondering if maybe server.transfers may work as well.

    I have experimented with rewritepath in global.asax but cannot seem to get it quite right.

    any help would be really useful! [​IMG]

    Thanks,

    Lee.
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page