Solved

CF7 Friendly URL

Posted on 2011-02-13
9
388 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 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
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
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

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

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

Suggested Solutions

Developer portfolios can be a bit of an enigma—how do you present yourself to employers without burying them in lines of code?  A modern portfolio is more than just work samples, it’s also a statement of how you work.
FAQ pages provide a simple way for you to supply and for customers to find answers to the most common questions about your company. Here are six reasons why your company website should have a FAQ page
This video teaches users how to migrate an existing Wordpress website to a new domain.
Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…

734 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