CMS help pages
  
You are here: Home > Files > Uploading files to the root directory of your website

Uploading files to the root directory of your website

(Google sitemaps etc.)

For various reasons you may wish to have a file published to the root directory of your website. Google sitemaps are an example.

You cannot simply upload a file to the root directory of your site, as the root directory is overwritten when you publish your website.

To force a file to be published to the root directory of your website:

  1. Upload the file using the 'Files' tab
  2. Create a link to the file anywhere on your website.

Note: If you do not need (or want) the file to be easily accessible by regular visitors, the easiest option is to:

  1. Create a new page
  2. Set the new page not to appear in the menu [how to set page properties]
  3. Create links to the files you require on this new page [how to create links to files]. It does not matter what text you use for the link, so for easy maintenance we suggest you simply use the filename as the link text.
    E.g. "sitemap.xml" or "anotherfile.htm"

How to check that the file exists

Just publish your website then enter your web address followed by '/' and the filename into your browser's address bar. The file should then open. For example, "www.mydomain.com/sitemap.xml".