Fusebox 4 and friendly URLs

23 views
Skip to first unread message

Seona Bellamy

unread,
Dec 17, 2009, 10:34:44 PM12/17/09
to CFAussie
Hi guys,

I'm using my time off work to play around with some old half-finished projects that have been knocking around my hard-drive for a few years, seeing what I can bring to them with the new techniques and perspectives I learned in my last job. One of these projects in a half-built Fusebox 4 app and the issue I've been thinking about today is friendly URLs.

In my last job, we used ISAPI Rewrite to handle the URL rewiring for our CMS. It was very effective and relatively easy to customise once you got your head around the syntax, but the main problem I see with it is that it's only feasible when you have control over the server and can make sure that the necessary software is installed and suchlike. (That's my understanding of it, anyway, so please correct me if I'm wrong!)

I'm looking to create something that can be taken and uploaded to any CF server, including shared hosting providers, and "just work". That's the theory anyway. So I was thinking about ways that you could write something in CF to handle this. I've done some searching and the only options I can find are rather old (most seemed to date around 2005 as far as I could tell) and so I'm not sure how relevant they would still be.

So is this something that anyone has done or knows of being done and can point me to? Is there a way to handle it in Fusebox so that you don't need to keep the index.cfm in the middle of the URL (as all the examples I found seem to do)? Am I just indulging in a pipe dream here and sound give up and play with something else?

Any thoughts and/or suggestions would be welcome on this. I'm tired to going around in circles.

Cheers,

Seona.

Mark Mandel

unread,
Dec 19, 2009, 6:54:21 PM12/19/09
to cfau...@googlegroups.com
No reason you couldn't use a application specific missing template handler, that's what we do in CodexWiki, for both CF8 and CF9 support.

Just means that all your requests have to end in .cfm.

http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7d2a.html

Mark

--

You received this message because you are subscribed to the Google Groups "cfaussie" group.
To post to this group, send email to cfau...@googlegroups.com.
To unsubscribe from this group, send email to cfaussie+u...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cfaussie?hl=en.



--
E: mark....@gmail.com
T: http://www.twitter.com/neurotic
W: www.compoundtheory.com

Kai Koenig

unread,
Dec 20, 2009, 7:40:21 PM12/20/09
to cfau...@googlegroups.com
At the end of the day, there's no way to get rid of a whatever.cfm 
(or another mapped suffix) file in your URL - unless you rewrite 
it on the HTTP server level. Not sure - but for me it's not that much
of a big deal as I'm not using much shared CF hosting.

ColdCourse is a nice routing framework for CF - if you're after the
rails-style URLs. I use that a lot together with FB 4 and 5 , makes
URL routing super-easy.


Cheers
Kai
_________________________________________________
Kai Koenig - Ventego Creative Ltd








Reply all
Reply to author
Forward
0 new messages