1 / 12

Search Engine Safe URLs

Search Engine Safe URLs. presented by Ben Ellefson ben@elfpro.com. Definitions. Static URL A static URL is a URL that contains no variables, even is the page itself is dynamic. (i.e. www.website.com/index.cfm) Dynamic URL A dynamic URL is a URL that contains variable name pairs.

yael-kirby
Download Presentation

Search Engine Safe URLs

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Search Engine Safe URLs presented by Ben Ellefson ben@elfpro.com

  2. Definitions • Static URL • A static URL is a URL that contains no variables, even is the page itself is dynamic. • (i.e. www.website.com/index.cfm) • Dynamic URL • A dynamic URL is a URL that contains variable name pairs. • (i.e. www.website.com/index.cfm?x=1)

  3. The Problem • Google and other search engines struggle to spider dynamic pages and do not fully index them. • This can lead to significantly less visibility on Google and other search engines.

  4. The Solution • Trick the search engines into thinking your dynamic URL is a Static URL. • This is done by reformatting the URL • Change: www.website.com/index.cfm?x=1 • To: www.website.com/index.cfm/x:1/index.html

  5. Execution • Step 1 • Reformat your URLs • Step 2 • Create function to extract the url scope variables.

  6. Step 1 • Convert all ? And & to / • Convert all = to : • Add full path (http://www.website.com/) to the beginning of all links and file paths. • Add /index.html at the end of all links.

  7. Reformatted Code Change: <a href=“Index.cfm?fuseaction=Customer.Login”> To: <cfset FullPath = “http://www.website.com/”> <cfouput> <a href=“#FullPath#Index.cfm/fuseaction:Customer.Login/index.html”> </cfoutput>

  8. Step 2 • Create User Defined Function to extract the url scope variables. • http://www.fusionauthority.com/Techniques/4226-Search-Engine-Safe-SES-URLs.htm • This function must be called in the Application.cfm

  9. UDF Code function SES() { var UrlVars=ReReplaceNoCase(trim(cgi.Path_Info), '.+\.cfm/? *', ''); var loopcount=ListLen(urlvars, '/'); var potential=""; if (cgi.script_name EQ cgi.path_info) return 0; for(i=1;i LTE loopcount; i=i+1) { potential=trim(listgetat(UrlVars, i, '/')); if (ReFindNoCase('^[a-z][a-z0-9_]*:.*', potential)) SetVariable('URL.'&listfirst(potential,':'),listlast(potential,':')); } return 1; } This function was created by Michael Dinowitz and posted in Fusion Authority article located at http://www.fusionauthority.com/Techniques/4226-Search-Engine-Safe-SES-URLs.htm

  10. Questions?

  11. Examples • www.BeginPage.com • A free web portal where users can fully customize the style and every link displayed. • www.houndstreetbakery.com • An e-Commerce site selling specialty dog treats.

  12. Credits PowerPoint created and presentation by Ben Ellefson, ElfPro LLC www.elfpro.com ben@elfpro.com User Defined Function created by Michael Dinowitz and posted in Fusion Authority article located at http://www.fusionauthority.com/Techniques/4226-Search-Engine-Safe-SES-URLs.htm

More Related