Forum Moderators: open
A couple of very well-respected members of this forum have said that I'm facing a potential duplicate content penalty from Google. In fact, I think I'm already seeing something to that effect.
I'm on an IIS shared server. The hosting company does not allow ISAPI to be installed for rewrites, because of past experiences with the rewrites affecting other sites.
One option is for me to switch to a VPS server where I can use the ISAPI rewrites, and do a 301 redirect on the pages in question so that they don't lose their ranking.
One tech person at the hosting company suggested I try the code below on my current server by creating a separate.aspx page in my directory:
if (Request.IsSecureConnection)
{
Response.Write("HTTPS");
}
else
{
Response.Write("HTTP");
}
I know so little about servers that I don't know exactly what the above code would do. Would all requests for https pages be redirected to http pages, or would it only redirect visitors whose browsers were not asking for a page with an SSL?
Assuming the latter, there's still the problem of the pages that Google now has ranking well under the https address. My fear is that a redirect like that will result in the pages disappearing from the search results.
Any suggestions or advice is very much appreciated.
<%If Request.ServerVariables("HTTPS") = "off" Then 'if not secure%>User-agent: *
Disallow: /make it what u want/
Disallow: /add anything here/
<%
else
%>User-agent: *
Disallow: /
<%
end if
%>
add what you want the non secure to be and no index all the https stuff.
This has worked for me for years. You can check after by typing in http://example.com/robots.txt
and
[example.com...]
One should allow what you want the other dissalow all
PS As fast as you can move the https out of your domain name to a sub domain name ie [secure.example.com...] this will keep your site from ever getting indexed under the https.
Correct me if I'm wrong, but this sounds like it should be very straightforward. If I just write the robots.aspx page as you describe and upload it to the server, is that all that needs to be done? Or is there something in ISAPI that needs to be done as well?
I don't want to bleed you for free advice, but if you can point me to a how-to article, that would be much appreciated.
Upload to the server ftp and then
Check to make sure robots.txt page is displaying what you want and then check by doing
[example.com...] this should throw a disallow all
<%If Request.ServerVariables("HTTPS") = "off" Then 'if not secure%>User-agent: *
Disallow: /make it what u want/
Disallow: /add anything here/
<%
else
%>User-agent: *
Disallow: /
<%
end if
%>
Add to the file what if anything you want disallowed in the robots.txt file and https will be disallow all.
Be sure anywere you have a link to the cart that is in https to make that link a "nofollow" as well.
Holler back if you have any issues or send me an email I will contact you of need be.
I created an .aspx file without any LANGUAGE="VBSCRIPT or such at the beginning of the code (don't know if that was the right thing to do or not).
The file reads as follows:
<%If Request.ServerVariables("HTTPS") = "off" Then 'if not secure%>User-agent: *
Disallow:
<%
else
%>User-agent: *
Disallow: /
<%
end if
%>
I don't know if there should be anything else, but when going to [example.com...] I see User-agent:* disallow:/ on the page.
One of the tech support guys tried a robots simulator, but couldn't tell if the script was disallowing the bots from reading https files. He thought that perhaps there should be something written in the ISAPI file.
Is there a resource you're aware of for what's supposed to be set in ISAPI?
Thanks for indulging my ignorance.
Note! be aware if the secure socket is as well in the [mydomain.com...] it will cause and issue. This is one reason I got my ss out from under the domain name and put it under a subdomain.
[webmasterworld.com...]
u going to pubcon?
I'd love to go to Pubcon (or anywhere, for that matter), but the problems with the financial markets are affecting my sales, so that's a no-go for this year.