I think that a missing CF page throws a templateNotFound exception, so,
theoretically,
you could use your onError (defined in Application.cfc) or you can add the
cferror tag
to Application.cfm <cferror type="exception" template="errorpage.cfm">

And from there, it's just a matter of trapping the templateNotFound and
checking
the "template name" against (maybe) a databased list of "missing" files, and
then
redirecting based on results.

I gotta implement this myself, in some manner, so I'll post what I come up
with when
I come up with it.

Theoretical at this point, but I think doable.
:D

-ps Aparently I never got the "sitewide" 404 set up right (within
cfadministrator), and
instead used Apache to pipe any 404's to the correct page. :-/ I know you
don't have
access to the Apache conf... but that's the only solution for plain .html
files.
(or the solution using meta-redirects)


On 4/14/06, Les Mizzell <[EMAIL PROTECTED]> wrote:
>
> > <cfheader statuscode="301" statustext="Moved Permanently">
> > <cfheader name="Location" value="#newURL#">
> > <cfabort>
>
>
> Is there any way to create a one page handler that would do this for a
> list of pages (assuming I know the names of the templates found to be
> missing)?
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:237965
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to