You setup a 404 handler on the server, set to a specific cfm page
(404.cfm maybe). In this page you parse the url for your vehicle vars
(REQUEST.details.make = toyota, REQUEST.details.model = tacoma,
REQUEST.details.trim = extended king cab). You then put some conditional
in the bottom of the doc that includes the proper template:
/*
* If the URL contained variables for vehicles, and noted a specific
vehicle by VIN
* or stock number, then show the spec sheet for that specific vehicle.
*/
if(!StructEmpty(REQUEST.details) AND
(StructKeyExists(REQUEST.details,"VIN") OR
StructKeyExists(REQUEST.details,"stockNumber"))){
include "/vehicleDisplay/vehicleDetail.cfm";
/*
* If a specific vehicle isn't noted, but other pieces are
(make, model, etc) then
* show the vehicle search page, which we'll filter by the
passed details parsed
* into the REQUEST.details struct.
*/
} else if (!StructEmpty(REQUEST.details){
include "/vehicleDisplay/vehicleSearch.cfm";
}
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 1/22/2012 11:30 AM, Dave Hatz wrote:
> Dave,
> Thanks for the feedback. Let me try to explain how the client site is
> currently set up. Client has a search results page on his site, like this
>
> http://www.mydomain.com/car_results.cfm?make=toyota&model=tacoma where the
> Car Model and Type are passed in as parameters. The page uses CSS, JS and
> Images folders to produce the results page.
>
> Then he has gone and set up links that are set up on other sites to point to
> something like this
>
> http://www.mydomain.com/cars/toyota/tacoma
>
> and what the client wants is the for the .cmf page under /tacoma to parse the
> url for the car type and model then display the results on his
> car_results.cfm page from his site. So our index.cfm parses the url and gets
> the make and model then redirects using CFLOCATION to the car_results.cfm
> page.
>
> Client is trying to gain SEO rankings on his
> http://www.mydomain.com/cars/toyota/tacoma page. He has folders for
> different makers/models of cars, which is 100's of different folders. We
> didn't want to have to create the same results page in all these different
> folders.
>
> You mentioned this approach was not a good idea. I would love to find a
> better approach and your thoughts on how we can improve this design.
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:349604
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm