Is there a way to store and retrieve variables in the entire htaccess file. The entire search that I just show shows how to create a variable with RegEx via mod_rewrite to apply it to the query string. This is not what I'm trying to do. I am implementing a version control system for a project with several applications. Current versions of the project are stored in the folder structure, for example: product/applications/application/version In the applications folder and several versions in each application folder there will be several applications, such as: v1.0 , v1.1 , v2.0 , etc. .
One of the things I'm trying to accomplish is to use htaccess for version control (I already use it to rewrite application URLs, I just want the version number in the example below 0.1 be the given variable at the top of my htaccess file. is it?
RewriteEngine On Options +FollowSymlinks
source share