I would recommend using Application.cfc instead of Application.cfm
for this. There is an 'onMissingTemplate' function in the .cfc that
is exactly what you need for your redirect. I'm using it for a
similar purpose on site right now.

It should not be very hard to convert from Application.cfm to
Application.cfc, and you gain a lot of new functionality for
your app when using Application.cfc. I had always used
Application.cfm in the past, but I just recently converted
a site to Application.cfc to take advantage of some of the
hooks available - it was well worth the effort.

Roy Terry


On Aug 31, 2:49 pm, nixforce <[email protected]> wrote:
> Im trying to create permalinks for my urls..
>
> Im thinking of doing this..
>
> I want to change the 404 file missing template to a cfml page that
> will read the url, and pull the content based on it..ie
>
> http://www.howcrafty.co.za/viewarticle_a_long_string_describing_the_a...
>
> The numbers at the end will be the ID for the record in the DB... and
> the first bit , viewarticle is the action i want to do, so the above
> would pull the article with id of 33333.
>
> Could i use cferror in the application.cfm to process 404 errors?

-- 
Open BlueDragon Public Mailing List
 http://www.openbluedragon.org/   http://twitter.com/OpenBlueDragon
 official manual: http://www.openbluedragon.org/manual/
 Ready2Run CFML http://www.openbluedragon.org/openbdjam/

 mailing list - http://groups.google.com/group/openbd?hl=en

Reply via email to