You don't need access to the server for mod_rewrite - only to the file system, 
so you can create a .htaccess file.


And if you still can't do that, then the solution is to use the CGI PATH_INFO 
variable, which is what index.cfm/THIS_BIT_HERE solutions use.
(Worth noting it doesn't have to be index.cfm - if you want it short, you can 
just call the file .cfm, so you could have domain.com/.cfm/whatever)


>Okay...
>
>@ Russ:
>I'd like to avoid any sort of rewriting because I most likely will never
>have access to the server to do this. I suppose I'm looking for a CF method
>of accomplishing this. As to the last part of your response ("point to the
>right page"), that's part of my question...how do I point to that page
>without using an extension?
>
>@Mike:
>I know how to create a default page for each folder. But that's exactly what
>I'm trying to avoid. The site I'm working on is fairly shallow...maybe 10
>total pages (not counting dynamic pages). So I really don't want to create
>loads of folders to contain multiple index pages. I'd like to have an
>"events.cfm" page, which will only ever be called using:
>http://www.somesite.com/events or /events
>
>Part of this research is because my company (Dealerskins) is looking at the
>possibility of having mapped urls for common pages in our system. Right now
>when someone wants to look at new car inventory they have to go to
>http://www.cardealership.com/pages/page.cfm?pageid=15489. Eventually we'd
>like to be able to allow links which look like this:
>http://www.cardealership.com/new-inventory/ and somehow map to the
>previously mentioned link.
>
>The main problem with IIS rewriting for Dealerskins is that we have 1500
>websites which all use the same codebase. For us to add rewrite rules for
>every page on every site is not an option.
>
>Andy Matthews
>Senior Coldfusion Developer
>Office:  877.707.5467 x747
>Direct:  615.627.9747
>Fax:  615.467.6249
>[EMAIL PROTECTED]
>www.dealerskins.com 
>
>-----Original Message-----
>From: Russ [mailto:[EMAIL PROTECTED] 
>Sent: Thursday, March 15, 2007 11:27 PM
>To: CF-Talk
>Subject: RE: Virtual "pages", without extensions. How to do it?
>
>The best way to accomplish it is with mod_rewrite using Apache.  The 2nd
>best way is to use some IIS rewrite filter (there was a thread on this
>today).  The 3rd best way is to set up a custom 404 handler and then parse
>the url and point to the right page. 
>
>Russ

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:272853
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to