Support Articles

Stay Connected

Custom sitemap, robots.txt & other files

Snapps allows you to upload several different file types to the root of your website. This allows you to have selected files that are served from the root of your domain, in order to use them as additional data to assist in your website.


The most common use cases for this are replacing the default robots.txt and sitemap.xml files that Snapps automatically generates (for more information on the default sitemap, see 
How do I Access the Sitemap?). If for example, you want to override these files, you can upload your own. Or, maybe you want to add a file which Snapps does not generate, like ads.txt.

NOTE
If you do not see the File option on the URL Redirect screen, access it first from the SEO settings and upload a file. After this, additional files can be uploaded by going directly to the URL Redirect screen.

  • To override the default files (sitemaps and robots.txt files), ensure the Source URL matches the file names (sitemap.xml and robots.txt) exactly.
  • The file types supported are .xml, .txt, and .json.
  • The platform does not validate custom files. For example, if a corrupt file is uploaded, it will still be served.

Replace the default sitemap, robots.txt file, and/or add other files


To replace the default sitemap, robots.txt file, and/or add other files from 
SEO settings:

  1. In the side panel, click Settings, then click SEO.
  2. In the Custom sitemap, robots.txt, and other files section, click go here.
  3. You will be directed to the URL Redirect screen with the File option already selected.
  4. In the Source URL field, enter in the file path you would like the file to have. For example, if you enter in ads.txt, the path for it on the live site will be www.mydomain.com/ads.txt.
  5. Click Upload file.
  6. The Redirect type is 2xx OK. It will already be selected and there are no other options.
  7. Click Add.
  8. Publish or republish the site to update or add the file to the live site.

To replace the default sitemap, robots.txt file, and/or add other files from URL Redirects:

  1. In the side panel, click Settings, then click URL Redirect.
  2. Click Add a New Redirect.
  3. Type in the file path you would like the file to have. For example, if you enter in ads.txt, the path for it on the live site will be www.sitename.com/ads.txt.
  4. Select the File option.
  5. Click Upload file.
  6. The Redirect type is 2xx OK. It will already be selected and there are no other options.
  7. Click Add.
  8. Publish or republish the site to update or add the file to the live site.

Revert back to using the Snapps generated files


To revert back to using the Snapps generated sitemap and/or robots.txt files:

  1. In the side panel, click Seo & Settings, then click URL Redirect.
  2. Click Delete for the file you would like to remove.
  3. Publish or republish the site to make change live.

What's

Snappin

Related Articles

By Eddie Cruz 24 Aug, 2021
Expand the capabilities of the website builder with custom HTML. This widget allows you to embed custom code into your site, and can be used to embed third-party widgets such as videos, contact forms, and more. While adding custom code can extend your site's functionality, we recommend you only add code from a trusted source. Only add code if you know exactly what it does and how to troubleshoot it if it does not work. To learn more about using HTML in Developer Mode, see Developer Mode.
By Eddie Cruz 24 Aug, 2021
The editor's interface has three main predefined sections: The top navigation bar, the left panel, and the content area. Each of these predefined sections plays an important role in letting you make your site as awesome as possible.
By Eddie Cruz 24 Aug, 2021
This widget makes it easy for website visitors to send you money using PayPal. You can use the PayPal button both for gathering donations and for selling products.
Share by: