latest reactions

spider
One way is to google for page which cont …
andy
you can find this tool here http://andy. …
Tjarko
Eej Walker, that's pretty cool, I will c …
Walker
Thanks for posting your thoughts. I modi …
Albert
Thanks !! …

Clicky Web Analytics
Use OpenDNS
ZERIGO DNS

Ultimate dns hosting based on pre-defined templates, DNS redirection and lot's more.

mxna feeds

CF101 Archive: September 2007 Object Oriented PizzaJob Opening for ColdFusion Developer at Arizona State UniversityMy New Experience Getting ColdFusion Builder 2 Console WorkingCF101 Archive: February 2007 Data Table GatewaysJob Opening for Sr. ColdFusion Developer in CA/ San Fernando ValleyColdFusion Supports HTTP Verbs PUT And DELETE (As Well As GET And POST)Best wishes for the new FuseboxCF101 Archive: January 2007 Data Access ObjectsOpen Source Conference For CFML DevelopersSkype Blocking Web Services with IIS, ColdFusion & RailoCF101 Archive: October 2006 Five Cool Things with ColdFusionGenerate a tag cloud from an RSS feed with ColdFusionColdFusion MeetUp: Cloudy with a Chance of Tests, with Mike HenkeReminder - Adobe CookbooksCF101 Archive: September 2006 A first look at FusionDebug

All files are strictly confidential: all information is classified.
© Copyright 2002 - 2012 mximize.com.
All right reserved.

Visit Carlos GallupaMXNA webfeed

how to get search engine friendly URL's

To get search engine friendly url's you can do a couple of things but one of the most effective ways is having the title of your article / blog as the unique identifier of your message. See the url of this post.

The way you can achieve this, is by having the 404 error page in coldfusion handle the request. You can set the 404 page in the ColdFusion Administrator and also in your Apache or IIS setup. Just point to a CFM page that will handle all requests that can't be found on the server.

On this 404 request page you build logic that will take the URL parameters of the variable "CGI.query_string" and pass that to your SQL statement. An example on how I use this on mximize.com

<cfset id = lcase(listLast(cgi.query_string,"/"))>

<cfquery datasource="">
    SELECT title, description
    FROM article
    WHERE art_urlsave = '#variables.id#'
</cfquery>


To insert the title as an urlsave value you can use the following bit of code

<cfset art_urlsave = lcase(rereplace(form.art_title, "[^A-Za-z0-9]+", "-", "all"))>

<cfquery datasource="">    
    INSERT INTO article (art_title, art_urlsave, art_description)
    VALUE ('#form.art_title#', '#variables.art_urlsave#', '#form.art_description#')
</cfquery>


This way you can point your links to the root of the site with the "art_urlsave" value as your link

<a href="/#art_urlsave#">how to get search...</a>

This is the really really short version of how it is implemented, but it's the basics of getting nice search engine friendly URL's. If you have questions just ask them!!

7640 viewed | Your opinion...  | del.icio.us | Digg it | Tjarko @ 11/06/07 11:02 cet


Reactions:

Leave your comment

Your name


Your url/website/link/email....


Some room for your reaction is placed here..



The answer to the ultimate question is?? (42 ;-))




URL en mail addresses are translated for you... life sometimes is that simple!!