Blog

Brad Wood

July 17, 2012

Spread the word


Share your thoughts

 

The typical ColdBox application always has "index.cfm" somewhere in each URL.  This is required so the web server knows to have your CFML application server process the request.  With the SES intereceptor you can eliminate the query string, but do you wonder how some websites get away with no file at all for super pretty URLs like:
 
This can be accomplished with a rewriting engine in your web server that adds the "index.cfm" back in to the URL once it reaches the server.  You can set it up with IIS or Apache.  Sound hard?  Not if you downloaded the ColdBox bundle!  Look in the "/install/SES Rewrite Rules" directory and we have sample rewrite configurations in there to get you started.
 
 
P.S. Remember to remove the index.cfm in your setBaseURL() in routes.cfm so event.buildLink() doesn't put it back in your links.
 

Add Your Comment

Recent Entries

BoxLang 1.0.0 Beta 27 Launched

BoxLang 1.0.0 Beta 27 Launched

We are excited to bring you Beta 27 with enhanced XML handling, new CLI app support, improved error handling, and expanded interoperability with Java and CFML runtimes. We've also added new HTTP event hooks, improved caching strategies, and a streamlined class resolution process to make your applications more performant, even in debug modes.

Luis Majano
Luis Majano
January 31, 2025
Into the Box 2025 | Plan Your Trip With Us!

Into the Box 2025 | Plan Your Trip With Us!

Are you ready to join us for Into the Box 2025 from April 30th to May 2nd in Washington, D.C.? Let’s make your trip planning as smooth as possible. Here you’ll find Airfare discounts, Hotel Deals and fun things to do to the the best out of your trip to D.C.

Maria Jose Herrera
Maria Jose Herrera
January 30, 2025