I use a separate file software_version
that is included using SSI into html files. So visitors can view current software version on download and some other pages.
Also there is an URL to download the most current version of software:
redirect /download/MySoftwareSetup.exe https://download.somedomain.com/MySoftwareSetup_2018.1.0.0.exe
I have a script that updates the file software_version
, and that HTML files display correct version.
But I have to manually edit .htaccess
file to make redirection to the freshest build work correctly.
Can .htaccess
read some variable from an external file and substitute it while this file is being processed? Something like the following:
redirect /download/MySoftwareSetup.exe https://download.somedomain.com/MySoftwareSetup_${file:software_version}.exe