#1
  1. No Profile Picture
    Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Feb 2017
    Posts
    115
    Rep Power
    279

    Need Help With Sitemap.XML file


    I have a client that is using Yoast for their XML file. Looks like it's automatically created the master /sitemap.xml index file, which contains a bunch of other sitemaps. However, when I try to upload it to Search Console (because they didn't even have SC set up), I'm getting errors because the other sitemaps within the index file look like this:

    https://www\.example.com/page-sitemap.xml

    If I remove the \ after the www it works, but I don't know why the \ is there to begin with, and I can't figure out how to remove it from every other sitemap URL within the master sitemap file. Anyone know what this is?
    Last edited by Digital Marketeer; Sep 26th, 2017 at 03:40 PM.
  2. #2
  3. Super Moderator
    SEO Chat Good Citizen (1000 - 1499 posts)

    Join Date
    May 2015
    Location
    United Kingdom
    Posts
    1,386
    Rep Power
    2207
    I've tweeted this to yoast, hopefully i'll get a reply there: https://twitter.com/thomasharvey_me/...86907986014208

    However to bypass this, you could just manually submit the correct individual sitemaps manually in search console?
    Always happy to help in private message. | Learn about my latest project Can You Get Automated Pages To Rank In Google?
    Useful Links: Useful SEO Tools | GTmetrix | FileOptimizer | Cloudflare
  4. #3
  5. No Profile Picture
    Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Feb 2017
    Posts
    115
    Rep Power
    279
    Thanks, and ya, I can add them individually to search console. I'm assuming I can do the same with the Robots.txt file?
  6. #4
  7. Super Moderator
    SEO Chat Good Citizen (1000 - 1499 posts)

    Join Date
    May 2015
    Location
    United Kingdom
    Posts
    1,386
    Rep Power
    2207
    Thanks, and ya, I can add them individually to search console. I'm assuming I can do the same with the Robots.txt file?
    You don't need to submit the robots.txt because as long as it's /robots.txt then it's something Google will crawl.

    The guys from Yoast have replied and they'd be happy to check just need to know the url.

    Comments on this post

    • DirectHits agrees
  8. #5
  9. No Profile Picture
    Contributing User
    SEO Chat Discoverer (100 - 499 posts)

    Join Date
    Feb 2017
    Posts
    115
    Rep Power
    279
    I usually add the sitemap to the robots txt file, but I usually just add the master sitemap. I've never added multiples, but I'm assuming there wouldn't be a problem? So it'd look like this:


    User-agent: *Disallow: /wp-admin/Allow: /wp-admin/admin-ajax.php
    Sitemap: http://example.com/sitemap-index.xmlSitemap: http://example.com/products.xmlSitemap: http://example.com/categories.xmletc...I'll PM you the URL for Yoast. Thanks!

Similar Threads

  1. Sitemap.xml file for blog in website
    By amitasingh0102 in forum Search Engine Optimization
    Replies: 5
    Last Post: Feb 10th, 2016, 09:16 AM
  2. What is sitemap index file? how to create sitemap index file?
    By rohit_tripath60 in forum Google Optimization
    Replies: 4
    Last Post: Jun 19th, 2008, 06:59 AM
  3. What file extension on Google sitemap?
    By misterdh in forum Google Optimization
    Replies: 1
    Last Post: Sep 23rd, 2006, 10:54 PM
  4. Sitemap file
    By Herward in forum Google Optimization
    Replies: 1
    Last Post: Sep 22nd, 2006, 02:19 AM
  5. Does the sitemap xml file have to be linked to get crawled?
    By paokun in forum Google Optimization
    Replies: 13
    Last Post: May 23rd, 2006, 11:43 AM

IMN logo majestic logo threadwatch logo seochat tools logo