2 Solutions:

1. either you handle it in the 404.cfm in the identical way
2. the problem might be that the directory call isn't actually calling the
index.cfm. Have you checked the default document that is called? If yes, and
you use IIS please go to IIS and check under the properties of the website
in question whether the "verify that file exists" checkbox is activated. It
is located under Properties/Website/configuration (for IIS 6) and somewhere
under Handler Mappings for IIS7.

HTH

Greetings from Switzerland
Gert Franz

Railo Technologies      Professional Open Source
skype: gert.franz       g...@getrailo.com
+41 76 5680 231 www.getrailo.com
  



-----Ursprüngliche Nachricht-----
Von: Matthew P. Smith [mailto:m...@smithwebdesign.net] 
Gesendet: Mittwoch, 11. August 2010 13:12
An: cf-talk
Betreff: getting path of not existent directory


I am trying to use a custom 404 to serve more se friendly pages.

Using application.cfc, I can properly serve this page, using the
onMissingTemplate method:

domain.com/art/paintings-21/index.cfm

I am parsing the path obtained from #arguments.template# to get the key(21)
and display the page by calling /404.cfm with the template info.

I am having trouble doing the same with this, though:
domain.com/art/paintings-21/

It does not seem to invoke the onMissingTemplate method, and rather calls
/404.cfm directly.

So in the CGI scope, I have:


SCRIPT_NAME=/404.cfm

PATH_INFO=


How can I access the "/art/paintings-21/" to get the info I need?  I
would like the page displayed for both:

domain.com/art/paintings-21/index.cfm

domain.com/art/paintings-21/




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

Reply via email to