1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Question About Code Required In HTML File For Sitemap

Discussion in 'Google Sitemaps' started by bad_bob00, Apr 22, 2008.

  1. #1
    Hi,

    I noticed that in my HTML code in the <head> tag I have the following line:

    <link rel="alternate" type="application/rss+xml" title="ROR" href="ror.xml" />


    I recently deleted my sitemap and recreated one, which is now just sitemap.xml

    How do I change the above line to point to my new sitemap?

    Also do I need the above line of code on every page of my website? Or just the index.html page?


    Thanks for any help offered
     
    bad_bob00, Apr 22, 2008 IP
  2. websitetools

    websitetools Well-Known Member

    Messages:
    1,513
    Likes Received:
    25
    Best Answers:
    4
    Trophy Points:
    170
    #2
    ROR is basicly RSS feed (ROR has some extensions, but they are not read by search engines). If you are trying to make a Google sitemap / XML sitemaps protocol, then yes, you can safely remove the line. The easiest way to submit your new sitemap file is to add a reference to your sitemap.xml in robots.txt.
     
    websitetools, Apr 22, 2008 IP
    bad_bob00 likes this.
  3. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Okay thanks ThomasSchulz.

    I had already created a sitemap.xml file, and I submitted it through Google Webmaster Tools. Is this enough, or do I need to do anything else? And then I can simply remove the line of code from my html files?


    Thanks again
     
    bad_bob00, Apr 23, 2008 IP
  4. websitetools

    websitetools Well-Known Member

    Messages:
    1,513
    Likes Received:
    25
    Best Answers:
    4
    Trophy Points:
    170
    #4
    Yep :)

    However, I still recommend also having a reference to it in robots.txt for other search engines than Google.


    Yes :)
     
    websitetools, Apr 23, 2008 IP
  5. bad_bob00

    bad_bob00 Active Member

    Messages:
    3,472
    Likes Received:
    56
    Best Answers:
    0
    Trophy Points:
    90
    #5

    Hi thanks for the help again.

    Sorry to be thick, but what should my robots.txt file contain? At the moment it just has the following:


    Is that enough?


    Thanks again :)
     
    bad_bob00, Apr 23, 2008 IP
  6. websitetools

    websitetools Well-Known Member

    Messages:
    1,513
    Likes Received:
    25
    Best Answers:
    4
    Trophy Points:
    170
    #6
    Like this tutorial shows, you should add the line Sitemap: http://www.example.com/sitemap.xml (Just use the path to your own XML sitemap file!)
     
    websitetools, Apr 24, 2008 IP