Solved

CF7 Friendly URL

Posted on 2011-02-13
9
378 Views
Last Modified: 2012-05-11
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
0
Comment
Question by:s8web
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 11

Accepted Solution

by:
Brijesh Chauhan earned 167 total points
ID: 34883118
0
 
LVL 11

Expert Comment

by:Brijesh Chauhan
ID: 34883133
Couple of more URL's with Custom tags to do it..

http://tutorial557.easycfm.com/

http://forums.adobe.com/thread/478301



0
 
LVL 16

Author Comment

by:s8web
ID: 34883205
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.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 11

Expert Comment

by:Brijesh Chauhan
ID: 34883272
Yeah if you are using APACHE on Go Daddy, you can implement mod_rewrite... hosting solutions do have some limitations
0
 
LVL 39

Assisted Solution

by:gdemaria
gdemaria earned 167 total points
ID: 34883487
Did you try this custom tag?   I have a friend who uses it and says it's very easy..

   http://developer.fusium.com/tools/ses.cfm

This is a CF solution.
0
 
LVL 16

Author Comment

by:s8web
ID: 34888400
@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.
0
 
LVL 36

Assisted Solution

by:SidFishes
SidFishes earned 166 total points
ID: 34888416
I've been using sesConvertor rom Fusium (link from gd above) for years. The only draw back to using it is that you need to manually rewrite all of the url's in your code

ie: change this

www.site.com/index.cfm?somevar=3&someothervar=5

into

www.site.com/index.cfm/somevar/3/someothervar/5.html

it does -not- do the conversion for you, it simply parse the friendly url back into something the server can use
0
 
LVL 39

Expert Comment

by:gdemaria
ID: 34888492

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.
0
 
LVL 16

Author Closing Comment

by:s8web
ID: 34888548
"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.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

"In order to have an organized way for empathy mapping, we rely on a psychological model and trying to model it in a simple way, so we will split the board to three section for each persona and a scenario and try to see what those personas would Do,…
There’s a good reason for why it’s called a homepage – it closely resembles that of a physical house and the only real difference is that it’s online. Your website’s homepage is where people come to visit you. It’s the family room of your website wh…
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question