s8web
asked on
CF7 Friendly URL
I would like to convert http://site.com/page.cfm?pageid=4 to a search engine friendly url. I'm using ColdFusion 7 on a GoDaddy account. It would be really cool if I could pass the title to the url too so it would look something like http://site.com/grape_varieties
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Hi brijeshchauhan. Thanks. I've tried both of the CF solutions with no luck. The Adobe forum suggests using mod_rewrite. I want to stick with a CF solution. I'm beginning to think this is another GoDaddy limitation.
Yeah if you are using APACHE on Go Daddy, you can implement mod_rewrite... hosting solutions do have some limitations
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@gdemaria:
I did, thanks. I saw your comment on post 25040937. I'm sure it works well, I'm thinking this is a GoDaddy thing at this point.
I did, thanks. I saw your comment on post 25040937. I'm sure it works well, I'm thinking this is a GoDaddy thing at this point.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
The other alternative then is for you to use code to automatically generate the folders and file names that you want to use, then in each one, you will have a simple command to call the template you want to display.
For example, let's say you want to have a friendly url for all products in your store. A simply loop through your database using CFFILE you can create a folder for every company name and a file for every product name.
/store/Adobe/coldfusion-9.
/store/Microsoft/Windows-7
etc.
Inside each file, you can have a few lines with the product ID and call the template
<cfset productID = 1234>
<cfinclude template="/productDetails.
I use this approach, it is very easy and effective.
ASKER
"it does -not- do the conversion for you, it simply parse the friendly url back into something the server can use"
Okay, so I feel kinda dumb now :)
Thanks everyone for the help.
Okay, so I feel kinda dumb now :)
Thanks everyone for the help.
http://tutorial557.easycfm.com/
http://forums.adobe.com/thread/478301