coldbox SES url trick with .htaccess and apache

Just wanted to share a solution for a problem I encountered with SES
urls and Apache

Using the sample .htaccess file from
http://wiki.coldbox.org/wiki/URLMappings.cfm

I found that a coldbox app in a subdirectory of your DocumentRoot work fine,
but if you use an alias to map in a folder which isn't actually under
your virtual host's
DocumentRoot, things don't work properly

The solution is to add a "RewriteBase /appdir" directive to the top
of .htaccess file after
RewriteEngine on

z

Can you elaborate on this, so I can add this to the docs?

Luis F. Majano
CEO
Ortus Solutions, Corp
www.ortussolutions.com

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Social: twitter.com/lmajano facebook.com/lmajano

my setup was like this

DocumentRoot "c:/inetpub/zac/www"
Alias /app "c:/inetpub/zac/app"

http://127.0.0.1:81/App/Main

ends up pointing to

CF_TEMPLATE_PATH=C:\inetpub\zac\www\inetpub\zac\app\index.cfm

adding "RewriteBase /app" fixes the problem

If DocumentRoot was "c:/inetpub/zac" this isn't required

z