Results 1 to 2 of 2

Path error in sitemap index file

This is a discussion on Path error in sitemap index file within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; hello, i submitted the root sitemap (mysite.com/sitemap_index.xml.gz) to google and i get an error at google sitemaps because the index ...

  1. #1
    Member
    Join Date
    Jan 2006
    Posts
    31
    Liked
    0 times

    Path error in sitemap index file

    hello,
    i submitted the root sitemap (mysite.com/sitemap_index.xml.gz) to google and i get an error at google sitemaps because the index file is linking to the sitemap files in the subfolders and not the root adress

    content of my index sitemap file (mysite.com/sitemap_index.xml.gz):
    <sitemapindex>
    -
    <sitemap>
    <loc>http://www.mysite.com/forums/sitemap_1.xml.gz</loc>
    <lastmod>2006-05-10T02:00:53+00:00</lastmod>
    </sitemap>
    -
    <sitemap>
    <loc>http://www.mysite.com/forums/sitemap_2.xml.gz</loc>
    <lastmod>2006-05-10T02:00:53+00:00</lastmod>
    </sitemap>
    </sitemapindex>
    how can i thange the links by default to:
    http://mysite.com/sitemap_1.xml.gz
    and
    http://mysite.com/sitemap_2.xml.gz
    ?

    can somebody help me?

  2. #2
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,744
    Liked
    169 times
    Hello,

    To get the root-level URLs in the sitemaps index, you should modify vbseo_sitemap_functions.php file.
    FIND:
    PHP Code:
                   'url'=>$vbseo_vars['bburl'] . '/' .$sm_filename
    REPLACE WITH:
    PHP Code:
                   'url'=>'http://www.mysite.com/' .$sm_filename
    Btw, you can just submit each sitemap file individually instead of the index file.

Similar Threads

  1. only able to view 1/3 of vbseo config area
    By mindhunter77 in forum Troubleshooting
    Replies: 5
    Last Post: 01-31-2006, 04:46 PM
  2. Problem with the sitemap file
    By Toocool in forum Troubleshooting
    Replies: 3
    Last Post: 01-29-2006, 04:33 PM
  3. URL not under sitemap path
    By BamaStangGuy in forum Troubleshooting
    Replies: 8
    Last Post: 12-19-2005, 09:12 PM
  4. Replies: 0
    Last Post: 12-17-2005, 01:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •