Here's a great beginner guide: http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/ <http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/>
On Wed, Aug 11, 2010 at 5:58 PM, Matthew P. Smith <[email protected]>wrote: > > Any way you could provide an example? > > I am looking here but did not see how to do what you stated. > http://httpd.apache.org/docs/2.0/misc/rewriteguide.html > > On Wed, Aug 11, 2010 at 6:32 AM, Michael Grant <[email protected]> wrote: > > > > > You could also use urlrewrite to rewrite /myDir/ to /myDir/index.cfm > which > > should then meet your criteria. > > > > On Wed, Aug 11, 2010 at 7:25 AM, Gert Franz <[email protected]> wrote: > > > > > > > > 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 [email protected] > > > +41 76 5680 231 www.getrailo.com > > > > > > > > > > > > > > > -----Ursprüngliche Nachricht----- > > > Von: Matthew P. Smith [mailto:[email protected]] > > > 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:336224 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

