I'd go along with the 404 error suggestion - I've implemented this too,
it works really well.

You need to create a custom 404 error on the web server (this is pretty
straightforward but needs access to the server config, whichever version
you use).  The 404 page then queries against a table of 'known pages' or
such like, and cfincludes the correct page without any need for
redirection or URL rewriting.

However outside of CF, you can use url rewriting (mod_rewrite or ISAPI
rewrite) to achieve this with far less overhead.  The request would be
soething like www.domain.com/nice-url-here, and would end up being
passed to the application server under the bonnet as
www.domain.com/myfile.cfm?page=nice-url-here or whatever you choose.

There should be numerous tutorials on the web for doing this...

David


> -----Original Message-----
> From: Ben Nadel [mailto:[EMAIL PROTECTED] 
> Sent: 16 November 2006 13:41
> To: CF-Talk
> Subject: RE: Search Engine Friendly URLS
> 
> Ivan,
> 
> I do this via a 404 error:
> 
> http://www.bennadel.com/index.cfm?dax=blog:286.view 
> 
> Currently though, I create the URL manually though:
> 
> <cfloop query="qNews">
> 
> <a
> Href="domain.com/news/#REReplace( qNews.title, "[^\w]+", "-", "ALL"
> )#.htm"
> >#qNews.title#</a>
> 
> </cfloop>
> 
> So, no auto-created URLs, but I can catch pretty urls.
> 
> ......................
> Ben Nadel
> Certified Advanced ColdFusion MX7 Developer www.bennadel.com
>  
> Need ColdFusion Help?
> www.bennadel.com/ask-ben/
> 
> -----Original Message-----
> From: Ian Vaughan [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 16, 2006 4:26 AM
> To: CF-Talk
> Subject: Search Engine Friendly URLS
> 
> Hi
> 
> Using Coldfusion is it possible to convert the following
> 
> domain.com/news/prdetail.cfm?id=2084
> 
> To Search Engine Friendly URL such as
> 
> domain.com/news/example_news_story
> 
> 
> 
> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

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

Reply via email to