PilotCart Support Forum
PilotCart Support Forum
Home | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Pilot Cart Web Store
 Features/Fixes/Updates
 http vs https

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

Screensize:
UserName:
Password:
Anti-Spam Code:
Format Mode:
Format: BoldItalicizedUnderlineStrikethrough Align LeftCenteredAlign Right Horizontal Rule Insert HyperlinkInsert Email Insert CodeInsert QuoteInsert List
   
Message:

* HTML is OFF
* Forum Code is ON
Smilies
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Clown [:o)]
Black Eye [B)] Eight Ball [8] Frown [:(] Shy [8)]
Shocked [:0] Angry [:(!] Dead [xx(] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
   

T O P I C    R E V I E W
scarab Posted - 12/04/2008 : 5:56:34 PM
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

PilotCart Support Forum © 2008 Spliethof Inc dba PilotCart.com Go To Top Of Page
Powered By: Snitz Forums 2000 Version 3.4.06