House of Fusion
Search over 2,500 ColdFusion resources here
  
Home of the ColdFusion Community

Mailing Lists
Home / Groups / Search Engine Optimization

SEO at CFUnited

Author:
Jacob
05/22/2007 03:32 PM

I do my 301s at the server level (IIS6) with an ISAPI filter. I have not noticed that in my logs the issue with refers.  I have to look though. > > I'm going to post some 301 redirect code I've written to make sure that > all requests are www , lowercase and uses / rather than the default > document. This last one is cool as it makes a differentiation between any > page called as / and index.cfm so if your passing variables to index.cfm, > it's not 'mixing' with the default page without variables. I'd be interested in seeing how you can keep the 301 redirects from showing up on stats as a referral domain. That's the problem I'm seeing with the following script. For some reason www.albany.com shows up as a referral. Are you seeing that on your sites as well? <!--- 301 REDIRECTION TO THE CORRECT DOMAIN NAME - www.albany.com ---> <cfif NOT #CGI.SERVER_NAME# IS "www.albany.com">    <CFHEADER STATUSCODE="301" STATUSTEXT="Moved permanently">    <CFIF Right(CGI.SCRIPT_NAME,11) IS "default.cfm">     <CFSET strNewURL=" http://www.albany.com#ReplaceNoCase(CGI.SCRIPT_NAME,"default.cfm","")#">    <CFELSE>     <CFSET strNewURL="http://www.albany.com#CGI.SCRIPT_NAME#">    </CFIF>    <CFIF #CGI.QUERY_STRING# NEQ "">     <CFSET strNewURL="#strNewURL#?#CGI.QUERY_STRING#">    </CFIF>    <CFHEADER NAME="Location" VALUE="#strNewURL#"> </cfif>


Search seo

February 12, 2012

<<   <   Today   >   >>
Su Mo Tu We Th Fr Sa
       1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29