SES URLs in MangoBlog on Tomcat
My live blog site runs on ColdFusion (using JRun) with the SES servlet mappings in web.xml. I use the excellent MangoBlog engine for powering my blog. All this means that I have pretty-ish URLs like http://nagpals.com/blog/post.cfm/ftp-in-eclipse-hooray.
Today I wanted to run a copy of my blog on a dev box. But on that dev box, I chose to use JBoss-Tomcat. And the SES servlet mappings that work in ColdFusion on JRun, do NOT work on ColdFusion on Tomcat-JBoss as they are not supported by the servlet engine.
To get around it, I simply used Apache-based rewrites so that the SES urls like http://nagpals.com/blog/post.cfm/ftp-in-eclipse-hooray automatically get mapped to http://nagpals.com/blog/post.cfm?entry=ftp-in-eclipse-hooray.
Here are the rewrites that I put in place to get posts, categories, pages and search to work.