Website Versioning with htaccess
Posted: Mon Oct 05, 2009 4:57 am
Is there a way to make versions of a website that you can easily control with htaccess? For example, imagine the following directory structure..
Is there a way to make a rewrite rule that says domain.com/index.php points to domain.com/1.0/index.php, and domain.com/stuff.php points to domain.com/1.0/stuff.php, and so on? Then just by changing the 1.0 to 2.0 in htaccess, switch from one version to the other?
It feels like there should be, but so far everything I've tried has failed.
Code: Select all
/1.0/index.php
/1.0/stuff.php
/1.0/images/image.gif
/1.0/css/site.css
/2.0/index.php
/2.0/stuff.php
/2.0/images/image.gif
/2.0/css/site.css
It feels like there should be, but so far everything I've tried has failed.