PDA

View Full Version : XML Sitemap generation not working


saini1987
09-14-2016, 01:26 PM
In the settings>> XML sitemap arear i enabled the XML sitemap functionality and tried building a sitemap manually. It says sitemap generated at url: https://www.dthforums.com/xmlsitemap.php but when you visit that url it says file not found. means the vbulletin is not creating the xml file on the server. Can someone help me in this?

Seven Skins
09-14-2016, 02:17 PM
Make sure the folder has write permissions, where you are generating the sitemaps.
And make sure this file "xmlsitemap.php" is in the root of your site.

RichieBoy67
09-14-2016, 04:39 PM
yep, use ftp and chmod the sitemap directory to 777 usually. Make sure you have the correct folder path as well.

saini1987
09-15-2016, 12:28 AM
Make sure the folder has write permissions, where you are generating the sitemaps.
And make sure this file "xmlsitemap.php" is in the root of your site.

Yes, its in the root directory of the domain and the directory has 0755 permissions. Still not working.

RichieBoy67
09-15-2016, 12:30 AM
Create a new directory and chmod it to 777. Send your sitemaps there.

saini1987
09-15-2016, 12:30 AM
yep, use ftp and chmod the sitemap directory to 777 usually. Make sure you have the correct folder path as well.

Changed the directory permissions and still the problem persists, what correct folder path means here and how to check that and where?

--------------- Added 1473906778 at 1473906778 ---------------

Create a new directory and chmod it to 777. Send your sitemaps there.

Ok, i will create a new directory named "sitemap" now how to use this directory for XML Sitemaps in vbulletin?

--------------- Added 1473907498 at 1473907498 ---------------

Ok i figured it out. Three sitemap files are generated in the sitemaps directory:

vbulletin_sitemap_forum_1.xml.gz
vbulletin_sitemap_index.xml.gz
vbulletin_sitemap_thread_0.xml.gz

Now which one to submit in the webmaster tools?

RichieBoy67
09-15-2016, 12:46 AM
Ok, great..Just submit the url to the index to google webmaster tools and add it to your robots.txt and you should be set.

saini1987
09-15-2016, 12:48 AM
Ok, great..Just submit the url to the index to google webmaster tools and add it to your robots.txt and you should be set.

Hi Richie, which url to submit in webmaster tools?

is it http://www.dthforums.com/xmlsitemap.php

or the link to the three files generated in the sitemaps folder?

RichieBoy67
09-15-2016, 12:51 AM
No, use the exact url of that index file.

http://yoursite.com/the directory your sitemap is in/vbulletin_sitemap_index.xml.gz

saini1987
09-15-2016, 12:54 AM
ok i added the index xml file to the webmaster tools.

How to include it in robots.txt?

RichieBoy67
09-15-2016, 12:59 AM
Just add sitemap: your sitemap url

Add it to the bottom of your robots.txt file.

Seven Skins
09-15-2016, 07:18 PM
You should add this to google webmaster tools: http://www.dthforums.com/xmlsitemap.php

And this line to robots.txt file.

Sitemap: http://www.dthforums.com/xmlsitemap.php

RichieBoy67
09-15-2016, 07:32 PM
You should add this to google webmaster tools: http://www.dthforums.com/xmlsitemap.php

And this line to robots.txt file.

Sitemap: http://www.dthforums.com/xmlsitemap.phpWhat is the difference if you add that or the index itself?

Seven Skins
09-16-2016, 02:15 PM
If you move your sitemap folder .. what will happen to url???

RichieBoy67
09-16-2016, 02:56 PM
If you move your sitemap folder .. what will happen to url???
And how often does someone change their sitemap folder? :erm: if they do that they would need to change the path inside the settings anyways.

Anyways I was just curious what the difference was and if there was a good reason to change it.