psteja2000
Programmer
I was looking for stuff on making my application dynamic pages Google friendly. Does anyone know how to make it happen?
regards,
Teja
regards,
Teja
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Fiction: Sites are not included in Google's index if they use ASP (or some other non-html file-type.)
Fact: At Google, we are able to index most types of pages and files with very few exceptions. File types we are able to index include: pdf, asp, jsp, html, shtml, xml, cfm, doc, xls, ppt, rtf, wks, lwp, wri, swf.
services.cfm?T=%21%280%20%20%0A
<cfset pathinfo = cgi.path_info>
<cfif pathinfo contains "/product.cfm/">
<cfset pathinfo = listlast(pathinfo,"/")>
<cfset url.manuf = listgetat(pathinfo,1,"-")>
<cfset url.pn = listgetat(pathinfo,2,"-")>
</cfif>
So, from purely anectodtal evidence, it would appear that there is some benefit to disguising dynamic pages as having static links.
Here's how we did it:
Old link : "/product.cfm?manuf=acme&pn=ABC123"
New link : "/product.cfm/acme-ABC123"
<!---
<CF_FakeURL>
Creates URL parameters from values passed as part of the path (as opposed to in the query_string). This technique helps ensure that search engines and spiders index pages that might have been ignored (as some ignore any dynamic URLs).
Using this tag, a URL like this:
foo.cfm/FName/Ben/LName/Forta
will be processed and two URL variables will be created: URL.FName=Ben and URL.LName=Forta.
To use, simply place <CF_FakeURL> anywhere in your page (before the first URL variable is needed). By default / is used as the delimiter; an alternate delimiter may be specified in the DELIMITER attribute.
Ben Forta - ben@forta.com
12/1/2001
--->
<!--- Delimiter, defaults to / --->
<cfif cgi.path_info eq "">
<cfset cgi.path_info = "/">
</cfif>
<CFPARAM NAME="ATTRIBUTES.delimiter" DEFAULT="/">
<!--- Extract "query_string" from full path --->
<CFSET query_string_length=Len(CGI.PATH_INFO)>
<cfif query_string_length eq 0>
<CFSET query_string= "#cgi.path_info#">
<cfelse>
<CFSET query_string=Right(CGI.PATH_INFO, query_string_length)>
</cfif>
<!--- How many items in "query_string? --->
<CFSET items=ListLen(query_string, ATTRIBUTES.delimiter)>
<!--- Must be an even number, if odd, bail --->
<CFIF items MOD 2 IS 0>
<!--- Loop through list, pair of items at a time --->
<CFLOOP FROM="1" TO="#items#" STEP="2" INDEX="i">
<!--- Get each pair, first is name, second is value --->
<CFSET i1=ListGetAt(query_string, i, ATTRIBUTES.delimiter)>
<CFSET i2=ListGetAt(query_string, i+1, ATTRIBUTES.delimiter)>
<!--- Save this URL parameter --->
<CFPARAM NAME="URL.#i1#" DEFAULT="#i2#">
</CFLOOP>
</CFIF>