In a recent visit to Bing Webmaster tools, I discovered that many pages on my site (including my home page) were being indexed as https:// rather than http:/
I had a look into my Yahoo Webmaster stats and discovered a similar phenomenon.
Google indexed http pages only.
Because I run a shopping cart on my site that requires https for certain pages, 301 redirecting the entire site was not an option.
To complicate matters, my entire site runs as an asp.net application on a cloud Windows server, preventing direct access to IIS or the use of htaccess. In addition, because asp.net serves content from the same directory for http and https pages, an alternate robots.txt file for the secure content was also not an option.
I did some research online and at SEOMoz and found plenty of posts talking about how to redirect user-agents to the http version of the site. Rand did a great article on white hat cloaking that describes similar tactics.
Unfortunately for me, nearly 100% of the information out there deals with Apache redirects rather than Windows. Due to my shopping cart software, I am stuck with a Windows box.
So how does one go about correcting this on a Windows server?
The solution requires having the IIS Rewrite module installed (part of IIS 7). It will handle any pages that are served by the asp.net application.
Enter the following into the
Β Β Β Β
Β Β Β Β Β Β Β Β Β
Β Β Β Β Β Β Β Β Β Β Β Β Β Β
Β Β Β Β Β Β Β Β Β Β Β Β Β Β
Β Β Β Β Β Β Β Β Β
Β Β Β Β
The above solution is for Bing but you may enter any user-agent ID in the pattern field that currently says MSNBot.
I believe this qualifies as a “Nearly White” tactic to use Rand’s definition. Since the content is the same on the https and http versions, you are not fooling the engines. Rather, you are providing a better experience for users and telling the engines what content to index.
Many of us have to use Windows servers for the time being and this method of redirecting https to http for the SE’s while preserving the ability of your site to use SSL for things like shopping cart functionality should come in handy.
Β