Announcement

Collapse
No announcement yet.

Fix for Sitemaps (easy way)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Okay, looks like you submit both sitemap URL's as a "work-around". I was under the assumption you were just supposed to submit one main URL which is the "vbulletin_sitemap_index.xml.gz" file, and and Google would find the other two.gz files.

    i.e I only submit this URL
    http://www.mysite.com/forum/sitemaps/vbulletin_sitemap_index.xml.gz

    And its supposed to link
    to
    http://www.mysite.com/forum/sitemaps/vbulletin_sitemap_forum_0_25.xml.gz
    and
    http://www.mysite.com/forum/sitemaps/vbulletin_sitemap_thread_1_4473.xml.gz

    But it does not. It leaves out the /sitemaps
    .I have my path set at /usr/www/users/saj716/mysite_directory/forum/sitemaps

    I made the change that is listed at the beginning of the thread, and now it now works correctly. All I do is submit the one URL
    http://www.mysite.com/forum/sitemaps/vbulletin_sitemap_index.xml.gz
    and Google did finds the other two files (got the green check in Google for all three files)

    Comment


    • #32
      Can anyone here verify they are getting their pages indexed? Google finds and crawls the sitemap, all the links work, but it isn't actually indexing the site. ???? Is this a vbulletin problem or a google problem?

      Comment


      • #33
        hmm,

        I thought mine was working but now some errors on this map( clientscript/sitemap/vbulletin_sitemap_forum_0_30.xml.gz ) as well. They all showed up with checks for a week. It showed many urls in the Q.
        To date, 49 have been indexed ( out of 39,800) and now a red X with this message:
        Error: The last attempt at downloading the Sitemap failed. The details below are representative of the last successful download.
        ____________
        However, at the moment.... the xmlsitemap.php is still looking good and has done the submitting for all the maps. I'm hoping the other map is simply redundant or something and why it was kicked out.

        Its extremely important that this start working, slow death if it's not.

        I'll post my results here again.
        Cheers!

        RECORDING ORG
        created for musicians, by musicians

        Comment


        • #34
          Good news. Another 100 have been indexed in the last 24 hours.
          Cheers!

          RECORDING ORG
          created for musicians, by musicians

          Comment


          • #35
            Sitemap Still Does Not Work

            The 4.0.1 upgrade still has not fixed the sitemap problem. I still keep getting big Red X's.
            This problem should have been fixed by now.




            Originally posted by saj716 View Post
            I thought this was fixed in the 4.0.1? I had problems with Google and the sitemaps since I upgraded to 4.0.1. I looked in the class_sitemaps, and it still reads like it did before. I make the chang that's shown at the beginning of this thread, and now it works fine.

            At the top of the class_sitemaps files it does say

            vBulletin 4.0.1 - Licence Number xxxxxxxxxxx
            || # ---------------------------------------------------------------- # ||
            || # Copyright 2000-2010 vBulletin Solutions Inc. All Rights Reserved. ||

            So I know it's a new file


            The sitemaps were being generated with this
            http://www.mysite.com/forum/vbulleti...um_0_25.xml.gz
            instead of
            http://www.mysite.com/forum/sitemaps/vbulletin_sitemap_forum_0_25.xml.gz

            I made the change to the file and now it works fine.

            Comment


            • #36
              Originally posted by rockabilly View Post
              The 4.0.1 upgrade still has not fixed the sitemap problem. I still keep getting big Red X's.
              This problem should have been fixed by now.
              made a directory called sitemap
              in settings/options/XML sitemap typed sitemap in the "Sitemap File Path" box
              submit sitemap "www.yoursite.com/xmlsitemap.php" or "www.yoursite.com/forum/xmlsitemap.php"

              Click image for larger version

Name:	sitemap.JPG
Views:	1
Size:	27.5 KB
ID:	3677731

              Comment


              • #37
                I was following the instructions and having a little problem. Then I realized that the file class_sitemap.php had to be writeable. Once I made it writeable it worked perfectly. Thanks so much for the help. Like the rest of you I was having a lot of problems with this.

                Comment


                • #38
                  Hey MrChuck,

                  where is that file located?
                  Cheers!

                  RECORDING ORG
                  created for musicians, by musicians

                  Comment


                  • #39
                    Found it, mine is set to 755. You have it at 777?
                    Cheers!

                    RECORDING ORG
                    created for musicians, by musicians

                    Comment


                    • #40
                      The class_sitemap.php would be in the "includes" directory.

                      You'll have to read from the very beginning of this thread to make the change.

                      Once you do this, you only have to submit the one file, then Google will give you "3" green checks (the main file along with the 2 other files that would included as links in the main file) if you have it setup correctly.

                      http://www.yoursite.com/forums/sitem...p_index.xml.gz is the only url you will have to submit. Adjust the URL to fit your website

                      Comment


                      • #41




                        I performed all the fixes, and vBulletin writes the files to the "sitemaps" directory fine, but google does not want to see either URL.

                        Any ideas?

                        TheWindows7Site.com

                        Comment


                        • #42
                          Be sure and check its not 'forums' for your directory and not 'forum' like you have in your URL. Most people seem to use forums (plural), but I use forum. That could be the problem.
                          Also the same with sitemap and sitemaps.

                          Check your class_sitemap change you made and make sure that the sitemap(s) matches.

                          Also be sure you have it correct in the admin panel

                          Comment


                          • #43
                            All changes are correct. Still X's in Webmaster Tools

                            Comment


                            • #44
                              Click on the vbulletin_sitemap_index.xml.gz in GoogleWebmaster
                              This will bring up two other files... one will be named something like vbulletin_sitemap_thread_1_xxxx.xml.gz (xxxx will be a number)
                              Go back in your sitemap(s) directory and check and make sure that file and the one in Google match names.

                              Everytime your run the sitemap generator, it will change the file name (as long as your forum posts are increasing). Once that runs, and if the sitemap is not resubmit, then you would get a red check since the file names would change so Google would not find it.

                              Also, open the vbulletin_sitemap_index.xml.gz in your sitemaps directory and you will see a vbulletin_sitemaps_index.xml. Open that file and make sure that the URLs to your other two files are correct (including forums or sitemaps) The number in that file I mentioned above should also be the same.
                              If NOT, rerun the sitemap generator in vb, and resubmit your vbulletin_sitemap_index.xml.gz file in Google. Even if it is, double check everything and rerun the vb sitemap, and resubmit.

                              Comment


                              • #45
                                Ok so I re-ran the sitemap generator and here is what I get.



                                I opened up vbulletin_sitemap_index.xml.gz and got the following.
                                PHP Code:
                                <?xml version="1.0" encoding="UTF-8"?>
                                <sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
                                <sitemap>
                                    <loc>http://thewindows7site.com/forum/sitemaps/vbulletin_sitemap_forum_0_62.xml.gz</loc>
                                    <lastmod>2010-01-24T02:15:21-08:00</lastmod>
                                </sitemap>
                                <sitemap>
                                    <loc>http://thewindows7site.com/forum/sitemaps/vbulletin_sitemap_thread_1_5012.xml.gz</loc>
                                    <lastmod>2010-01-24T02:15:22-08:00</lastmod>
                                </sitemap>
                                </sitemapindex>
                                So it points to the 2 new sitemap files.

                                I then open up vbulletin_sitemap_thread_1_5012.xml.gz and it reads:
                                PHP Code:
                                <?xml version="1.0" encoding="UTF-8"?>
                                <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
                                <url>
                                <loc>http://thewindows7site.com/forum/threads/10216-New-Forum-Errors-and-Bugs-In-Here</loc>
                                <lastmod>2009-08-05T20:47:31-07:00</lastmod>
                                <changefreq>yearly</changefreq>
                                <priority>0.5</priority>
                                </url>
                                <url>
                                <loc>http://thewindows7site.com/forum/threads/10217-MY-P-C-specs-and-stuff</loc>
                                <lastmod>2009-08-03T10:18:17-07:00</lastmod>
                                <changefreq>yearly</changefreq>
                                <priority>1</priority>
                                </url>
                                <url>
                                <loc>http://thewindows7site.com/forum/threads/10218-Apple-forces-Microsoft-to-change-Laptop-Hunter-ad</loc>
                                <lastmod>2009-07-24T09:54:10-07:00</lastmod>
                                <changefreq>yearly</changefreq>
                                <priority>1</priority>
                                </url>
                                CUT SHORT BECAUSE ITS LONG!
                                So its linking to the threads fine.

                                I then re-submit the url's to google and get the red X again.

                                I open up ./sitemaps/vbulletin_sitemap_index.xml.gz in Webmaster Tools and get this:
                                General HTTP error: 404 not found
                                We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.
                                I dont know what the issue is. My sitemaps directory is ./sitemaps/ and I edited /includes/class_sitemap.php to read as following:
                                PHP Code:
                                        {
                                            
                                $content .= "\n" '<sitemap>';
                                                        
                                            
                                $content .= "\n\t" '<loc>' htmlspecialchars($this->registry->options['bburl'] . '/sitemaps/' urlencode($sitemap['loc'])) . '</loc>';  
                                            
                                $content .= "\n\t" '<lastmod>' date(DATE_W3C$sitemap['lastmod']) . '</lastmod>';
                                            
                                $content .= "\n" '</sitemap>';
                                        } 
                                And the location I have in the adminCP is correct or else my sitemaps wouldnt be stored to the system. I have CHMOD'd the ./sitemaps/ directory to 755.

                                Still experiencing issues. :|

                                Whats weird is when I click on the ./xmlsitemap.php in Webmaster Tools it lists both the sitemaps in my sitemaps directory. Then when I click on them google says:

                                General HTTP error: 404 not found
                                We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.
                                I am at a loss here.

                                Does class_sitemap.php have to be writable? Because right now its CHMOD'd to 644. And if so, what should it be CHMOD'd to?

                                Comment

                                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                                Working...
                                X