Expiring Today—Celebrate National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

CF7 Friendly URL

Posted on 2011-02-13
9
Medium Priority
?
391 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
  • 2
  • +1
9 Comments
 
LVL 11

Accepted Solution

by:
Brijesh Chauhan earned 668 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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
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 668 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 664 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

Command Line Tips and Tricks

The command line is a powerful tool at the disposal of every Linux user. Although Linux distros come with beautiful user interfaces, it's worthwhile to learn the command line because it allows you to do a number of things that you otherwise cannot do from the GUI.  

Question has a verified solution.

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

When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
When it comes to security, close monitoring is a must. According to WhiteHat Security annual report, a substantial number of all web applications are vulnerable always. Monitis offers a new product - fully-featured Website security monitoring and pr…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

730 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