Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

CF7 Friendly URL

Posted on 2011-02-13
9
Medium Priority
?
393 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 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 Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
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…
Suggested Courses

971 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