How do I remove domain.com/default.aspx?

Discussion in 'Google' started by mji2010, Jun 18, 2009.

  1. #1
    mji2010, Jun 18, 2009 IP
  2. OnInternetBusinessGuide

    OnInternetBusinessGuide Well-Known Member

    Messages:
    330
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #2
    You need to sign up for Google Webmaster Tools. In the Webmaster Tools, there is a section where you can request URL removal. It will take a few days before Google removes URLs.
     
    OnInternetBusinessGuide, Jun 19, 2009 IP
  3. mji2010

    mji2010 Active Member

    Messages:
    762
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #3
    In order to do that, wouldn't I have to create a robot.txt file that blocks my default page from being indexed?
     
    mji2010, Jun 20, 2009 IP
  4. app789

    app789 Peon

    Messages:
    330
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    put 301 redirect.
     
    app789, Jun 20, 2009 IP
  5. mji2010

    mji2010 Active Member

    Messages:
    762
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #5
    I am using asp .net and it will put it in an infinite loop if I redirect default.aspx to /
     
    mji2010, Jun 20, 2009 IP
  6. app789

    app789 Peon

    Messages:
    330
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #6
    ohh, I never use .net framework but In your other pages you can write code such as

    private void Page_Load(object sender, System.EventArgs e)
    {
    Response.Status = "301 Moved Permanently";
    Response.AddHeader("Location","http://www.example.com");
    }
     
    app789, Jun 20, 2009 IP
  7. mji2010

    mji2010 Active Member

    Messages:
    762
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #7
    Right, that's exactly what I use for the other pages because I recently purchased an expired domain name. I am just having the problem with the default.aspx page.
     
    mji2010, Jun 20, 2009 IP
  8. mji2010

    mji2010 Active Member

    Messages:
    762
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    55
    #8
    Thanks every one. I found the answer. I have to use this tag:
    <link rel="canonical" href="http://www.example.com/" />

    in the head section to let google know which url is the one to use.
     
    mji2010, Jun 20, 2009 IP