Hiding Path to Directory

Discussion in 'ASP.NET / ASP.NET Core' started by iwantioffer, Aug 24, 2005.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. Our DNN application is placed in a subdirectory: www.mysite.com/DNN. I have a simple index.asp with redirect to DNN folder, which is placed in root of my site.

    Is it possible to write something this way that the path DNN will not show once the user selects www.mysite.comand be redirected to www.mysite.com/DNN? Would it be possible to remove that DNN path?

    Discount ASP does not have domain pointers...

    What do you think? Please let me know. Thanks,

    Rafal
     
  2. You can do Server.Transfer('DNN/Index.aspx') which does a 'behind the scenes' transfer without updating the clients URL. The alternative is Response.Redirect() which will actually send the client to the new URL. Note that this only works once. Once the user clicks a link, it will take her to the actual URL.
     
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