I am working on redoing my personal site and I have a quick question. Almost my whole site is going to be written using Coldbox (home/about/projects/etc) but my blog is going to be a standalone app using blogcfc. How can can I combine the 2 so /blog is its own application? Just a little confused on how to handle this, any insight is appreciated.
You need to add a rewrite rule the stops processing for “^blog” or “^/blog” (depending on which rewrite solution/server you are using). The default urlrewrite filters are mapping /blog to /index.cfm/blog which is kicking off the ColdBox app.
Here is an example of some rules that stop processing for IIS:
And, here is another for Tuckey URLRewrite which I use for my blog hosted by TomCat/Railo which rewrites anything that does not match:
<?xml version="1.0" encoding="utf-8"?>
Enable TomCat to have SES links.
\.(bmp|gif|jpe?g|png|css|js|txt|pdf|doc|xls|xml|cfc|ico|php|asp)$
^/(?!cdn|src|railo-context|test|mxunit|remote|monitoring|root)(.*)$
/index.cfm/$1
if you look in config/routes.cfm you will see the default route. Is that catching the request and trying to do something with it? That would explain /blog does not go through the request.
// Your Application Routes
addRoute(pattern=":handler/:action?");