How do I get the calling template though?  I was using CGI.PATH_TRANSLATED
but the value for that is always 404.cfm.

On Tue, Feb 26, 2013 at 5:38 AM, Steve 'Cutter' Blades <
cold.fus...@cutterscrossing.com> wrote:

>
> onMissingTemplate only fires for ColdFusion processed template requests
> (.cfm, .cfc, etc). Generally a directory request will need to be handled
> by a 404 handler. I haven't tested this, but your issue may be your web
> server's default template handler. Most web servers are setup to, by
> default, serve index.html first, and then other defined templates (like
> index.cfm). You can control that lookup order, by moving index.cfm to
> the front of the pack. But, again, it may be that you'll just have to
> point your 404 page handler to a custom CF template to parse the url and
> treat the result.
>
> Steve 'Cutter' Blades
> Adobe Community Professional
> Adobe Certified Expert
> Advanced Macromedia ColdFusion MX 7 Developer
> ____________
> http://cutterscrossing.com
>
>
> Co-Author "Learning Ext JS 3.2" Packt Publishing 2010
>
> https://www.packtpub.com/learning-ext-js-3-2-for-building-dynamic-desktop-style-user-interfaces/book
>
> "The best way to predict the future is to help create it"
>
> On 2/25/2013 8:52 PM, Matthew Smith wrote:
> > I am using ses urls, so a product page is linked as:
> > mysite.com/art/art-product-2/
> >
> > Right now I am getting the defualt 404 page from the web server(not CF).
> >
> > A request for:
> >
> > mysite.com/art/art-product-2/index.cfm
> >
> > works, triggering the onMissingTemplate in Application.cfc.
> >
> > Is there a way to configure CF to capture requests for a directory as
> well?
> >   I guess it might be a web server config issue.  I'm running apache with
> > .mod_rewrite for the site.
> >
> > Thank you.
> >
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354702
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to