I'd like to be able to release my web sites (all using shared hosting) by
version; what I mean by this is, say I have the current version of the site
in directory /V1/, and a new version of the site in directory /V2/. I would
then have a complete copy of each version of the site in the appropriate
directory, that way, if anything bad happened, I could easily roll back.

My web host told me that I can accomplish this by using a .htaccess file;
this is on IIS using the ColdFusion Applicaiton server, with the .htaccess
duties being handled by
Microonovae<http://micronovae.com/ModRewrite/ModRewrite.html>.
So, I set up an .htaccess file with the following contents:

#
RewriteEngine On
RewriteCond %{HTTP_HOST} www.wherever.com
RewriteCond %{REQUEST_URI} !/V1/
RewriteRule ^(.*)$ /V1/$1 [L]
#
RewriteCond %{HTTP_HOST} beta.wherever.com
RewriteCond %{REQUEST_URI} !/V2/
RewriteRule ^(.*)$ /V2/$1 [L]
#



This does indeed redirect to code in the /V1/ folder, but the problem I am
having is that I am using a number of server side includes with an absolute
path to root, i.e.:

<cfinclude template="/extensions/inc/udf_lib.cfm">


The problem is, it seems to be looking at the REAL root of the server, i.e.
the directory that also contains the /v1/ and /v2/ directories. This doesn't
make sense to me, as it seems like of .htaccess is doing its job the way is
should, it would automatically look for /v1/extensions/inc/udf_lib.cfm

Am I expecting too much out of .htaccess? Or do I simply not have my
.htaccess file written correctly?

Thanks,

Pete


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:325864
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to