Is it possible to have default.aspx rewritten to root?

Discussion in 'ASP.NET 2.0' started by ariw, Jan 24, 2008.

  1. Is it possible to have default.aspx rewritten to root?

    I tried to do this through a redirect.
    It will go into a loop because the root is in reality loading default.aspx.

    For SEO reasons, it is not advisable for two URLs to load the same page (duplicate content).

    Any suggestions?

    -Ari
     
  2. Do you mean like this?

     
  3. Thanks for the reply, but I don't think you are understanding the problem.
    First of all, I am asking about 301 redirect, not a hyperlink on a page.

    The unique problem I am facing is that I am trying to redirect default.aspx to the root, which in actuality is default.aspx. So the root gets redirected yet again, going into an infinite loop.

    Please try it for yourself, and you will see what I mean.

    -Ari
     
  4. Do the same link I posted with out the page name, just the slash.
     

Share This Page