Loading ...

301 redirect problem

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  advanced topics   » 301 redirect problem

301 redirect problem

Posts under the topic: 301 redirect problem

Posted: 12/8/2011

Lurker 10  points  Lurker
  • Joined on: 12/7/2011
  • Posts: 2

I am trying to set up 301 redirect so that www.site.com, www.site.com/index.aspx, site.com all point to the same page.

To do that I am using following setting in web.config file:

str=http://www.nexthermal.in/index.aspx
currentUrl=/index.aspx

 <%-- string url = HttpContext.Current.Request.Url.AbsoluteUri;
        Response.Write("str=" + url );
        Response.Write("currentUrl=" + currentUrl );
        Response.End();--%>
url=/Index.aspx

However, I get the following error:

  [System.Diagnostics.DebuggerNonUserCodeAttribute()]
   public global_asax() {
  if ((global::ASP.global_asax.@__initialized == false)) {
 


Page 1 of 1 (1 items)