What is the correct way to submit sitemaps to search engines?

Discussion in 'Server Operation' started by concept21, Jan 19, 2025.

  1. concept21

    concept21 Active Member

    Dear Web Masters,
    So how do you submit site maps to search engines? :oops:

    I expose my site maps in this way:
    In a file /web_root/allsitemaps.txt, I add every site map created by the web designer:
    Code:
    https://www.mywebsite.com/gb/sitemaps.xml
    https://www.mywebiste.com/us/sitemaps.xml
    ...
    
    I also add these lines in file /web_root/robots.txt:
    Code:
    Sitemap: https://www.mywebsite.com/gb/sitemaps.xml
    Sitemap: https://www.mywebsite.com/us/sitemaps.xml
    ...
    
    Then, I submit these 2 files to Goggle web tool but it does not recognise them very well. It said these files did not contain sitemap.
    https://www.mywebiste.com/allsitemaps.txt
    https://www.mywebiste.com/robots.txt

    And then I submit these one by one:
    https://www.mywebsite.com/gb/sitemaps.xml
    https://www.mywebsite.com/us/sitemaps.xml
    ...

    It seems that goggle web tool does not like batch submission of sitemaps. Can you share your experience of submitting sitemaps in batch?
    I have almost 100 countries sitemaps to submit. :( I am becoming a Web Slave, not a Web Master.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Create a sitemap.xml that references the other ones. As an example, see the sitemap of this forum:

    https://forum.howtoforge.com/sitemap.xml

    And to Google, you submit just this central sitemap; Google then finds and reads the other sitemaps on its own.
     
    ahrasis and concept21 like this.
  3. concept21

    concept21 Active Member

    I see. I guess my web designer cannot write sitemap correctly! :D
     
    ahrasis likes this.

Share This Page