Solved

CF7 Friendly URL

Posted on 2011-02-13
9
373 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
 
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
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

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

Why do we like using grid based layouts in website design? Let's look at the live examples of websites and compare them to grid based WordPress themes.
Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
The viewer will learn how to dynamically set the form action using jQuery.
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.

708 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now