Sometimes, you may need to upload a file to your October CMS directory, such as sitemap.xml or robots.txt. However, simply uploading the file to the site’s directory may not allow you to access it via a direct link.

To ensure you can access the file via a direct link, follow these steps:

  1. Locate the .htaccess file in the root directory of your October CMS installation.
  2. Find RewriteEngine On line. This line is typically near the beginning of the file.
  3. Add the following code below that line:
## ## Allows filename.txt ## RewriteRule ^filename.txt - [L]

Replace filename.txt with the actual name of your file. Ensure that the filename matches exactly, as it is case-sensitive.

By following these steps, you can successfully upload a text file to your October CMS website and ensure it’s accessible via a direct link.