The information in this article is relevant only for Pro users at this time. For information about booking websites for Lite users, refer to the Guesty Booking Engine
Guesty Websites 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 Guesty Websites automatically generates (for more information on the default sitemap, see How Do I Access the Guesty Websites Sitemap?). If for example, you want to override these files, you can upload your own. Or, maybe you want to add a file that Guesty Websites 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 Guesty Websites 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:
-
In the side panel, click Settings, then click SEO.
-
In the Custom sitemap, robots.txt, and other files section, click go here.
-
You will be directed to the URL Redirect screen with the File option already selected.
-
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.
-
Click Upload file.
-
The Redirect type is 2xx OK. It will already be selected and there are no other options.
-
Click Save.
- 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:
- In the side panel, click Settings, then click URL Redirect.
- Click Add a New Redirect.
- 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.
- Select the File option.
-
Click Upload file.
-
The Redirect type is 2xx OK. It will already be selected and there are no other options.
-
Click Save.
- Publish or republish the site to update or add the file to the live site.
Revert back to using the Guesty Websites generated files
To revert back to using the Guesty Websites generated sitemap and or robots.txt files:
-
In the side panel, click Seo & Settings, then click URL Redirect.
-
Click Delete for the file you would like to remove.
-
Publish or republish the site to make change live.