While using Blocs 6 today, I noticed a new feature in Project Settings named “Htaccess production mode”…
Unfortunately, the Knowedlge Base makes no mention of it…
.
What does it do?
While using Blocs 6 today, I noticed a new feature in Project Settings named “Htaccess production mode”…
Unfortunately, the Knowedlge Base makes no mention of it…
What does it do?
Hey @JDW I have just updated the Code Editor and Project Settings knowledge base posts to explain what this option is for.
To save you a round trip.
Blocs allows you to store .htaccess code directly in your project files using the built-in Code Editor. When you export or publish a project, this code is saved in a file named htaccess.txt. However, if Htaccess Production Mode is enabled, the code is instead saved in a file named .htaccess.
Please note that .htaccess files are hidden by default on macOS, iPadOS, and iOS. While they exist, the operating system does not display them unless hidden files are specifically set to be shown.
When production mode is enabled and the site is published to a server, Blocs will automatically create a timestamped backup of the original .htaccess file from your hosting server (if one exists) before replacing it with a new version.
I hope this helps.