|
Mailing Lists
|
Home / Groups / Search Engine Optimization
SEO at CFUnitedI 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> |
February 12, 2012
|
Latest Fusion Authority Articles
|
|||||||||||||||||||||||||||||||||||||||||||||||||