PilotCart Support Forum
PilotCart Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Pilot Cart Web Store
 Features/Fixes/Updates
 http vs https
 New Topic  Reply to Topic
 Printer Friendly
Author  Topic Next Topic  

scarab
Forum Admin

USA
413 Posts

Posted - 12/04/2008 :  5:56:34 PM  Show Profile  Visit scarab's Homepage  Reply with Quote
There is a lot of talk about duplicate content arising in Google due to your site being indexed on both secure and nonsecure ports... I don't wish to get into such a discussion. I just want to show a way to change the robots meta tag conditions. If your site is configuired using standard ports; Port 80 for http and port 443 for https you can copy and paste, otherwise you can guess from here what to do if your ports are different.


Using the server port server variable (Request.ServerVariables("server_port") )...
	<%
	if Request.ServerVariables("server_port") = "443" then
		Response.Write "<meta name=""robots"" content=""noindex,nofollow"">"
	Else
		Response.Write "<meta name=""robots"" content=""Index, ALL"">"
	End if
	%>


You can test by looking at your source code. You’ll see it as:

<meta name="robots" content="Index, ALL">


Now go to secure mode (change the http:// to https:// )and view the source.

<meta name="robots" content="noindex,nofollow">	



Andy Spliethof
www.scarabmedia.com
   Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
PilotCart Support Forum © 2008 Spliethof Inc dba PilotCart.com Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.06