Add sitemap generator file in the robots.txt file with xml code to optimize the SEO performance.

To optimize the SEO using SCA tools we need to add the sitemap generator to do this, we need to follow few steps

NetSuite Help Center

Update Sitemap Details in the robots.txt File

To help search engines locate your sitemap files, you must update your robots.txt file with the name and location of the sitemap index file.

Note This process is currently not automated because robots.txt files can be heavily customized.

To update the robots.txt file with the sitemap index file name:

  1. Go to Commerce > Marketing > SEO > Sitemap Generator.
  2. Click Sitemap Files in the View column for the desired site.
  3. You are redirected to the Web Site Hosting Files folder in the file cabinet where the robots.txt file is stored.
  4. Note the sitemap index file name. For example, sitemap_mywebstore.com_Index.xml.
  5. Edit the robots.txt file as described in Editing Files in the File Cabinet.
  6. Add the sitemap index file name in the following format: sitemap: http://domain/indexfilename.
  7. For example, if your sitemap index file name is sitemap_mywebstore.com_Index.xml, add the following entry in the robots.txt file: sitemap: http://mywebstore.com/sitemap_mywebstore.com_Index.xml
  8. Save the robots.txt file.

Because sitemaps are domain-specific, if you have multiple domains sharing the file cabinet root directory, you need to have two robots.txt files pointing to two different sitemaps. You can achieve this by setting up URL redirects as shown in the following example:

  • www.mywebstore1.com/robots.txt redirects to /robots-mywebstore1.txt
  • www.mywebstore2.com/robots.txt redirects to /robots-mywebstore2.txt

with the help of site map generator website, we need to get the links and we need to add that links in the xml format to the robots file.

like this the xml link need to be add in the site map genatot index file and that file name need to be add in the robots file

Leave a comment

Your email address will not be published. Required fields are marked *