W
W
WebDev2018-04-23 11:57:57
Search Engine Optimization
WebDev, 2018-04-23 11:57:57

Have I specified the sitemap correctly?

The site has over 250,000 pages that need to be indexed. I created 6 sitemap files, and sitemapindex.
sitemapindex.xml looks like this:

<?xml version="1.0" encoding="UTF-8"?>

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
    <sitemap>
        <loc>domain.com/sitemap1.xml</loc>
    </sitemap>
    <sitemap>
        <loc>domain.com/sitemap2.xml</loc>
    </sitemap>
    <sitemap>
        <loc>domain.comsitemap3.xml</loc>
    </sitemap>
    <sitemap>
        <loc>domain.com/sitemap4.xml</loc>
    </sitemap>
    <sitemap>
        <loc>domain.com/sitemap5.xml</loc>
    </sitemap>
    <sitemap>
        <loc>domain.com/sitemap6.xml</loc>
    </sitemap>
</sitemapindex>

I wrote the following in robots.txt
User-agent: *
SITEMAP: domain.com/sitemapindex.xml

Did I do everything right? Will these files be found by search engines?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
The Whiz, 2018-04-23
@kirill-93

Add the protocol (http(s)://) to the sitemap in robots.
To validate the sitemap without extraneous advice, I recommend using the Google Webmaster Console by adding the sitemap there. The console will scan the sitemap and check for errors if there are any.

P
Puma Thailand, 2018-04-24
@opium

Well, you add them to the webmasters and see, a day for a second and an answer without any questions

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question