Link to home
Start Free TrialLog in
Avatar of s8web
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
Avatar of Brijesh Chauhan
Brijesh Chauhan
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of s8web
s8web

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
Avatar of gdemaria
gdemaria
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of s8web

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.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

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.0.htm
/store/Microsoft/Windows-7.htm

etc.

Inside each file, you can have a few lines with the product ID and call the template

<cfset productID = 1234>
<cfinclude template="/productDetails.cfm">


I use this approach, it is very easy and effective.
Avatar of s8web

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.