Google Search brings up https homepage? |
Post Reply | Page <12 |
Author | |
whizzinpc
Newbie Joined: 17-January-2006 Location: California Status: Offline Points: 20 |
Post Options
Thanks(0)
|
Probabaly the only way to fix this is to use absolute URL's in your navigation. Only thing you have to watch out for is at checkout you dont want to link to non-ssl pages or you will get the security warnings.
|
|
RedLeafDev
Certified ProductCart Developers Joined: 12-January-2010 Location: Portsmouth, NH Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Anyone want to double check my logic here? I think I've figured this one out.
Use a different robots file for https (assuming that you are using IIS and your host has url rewrite available to you). Steps are: 1) Create 2 robots files. Robots.txt contains: User-agent: * Disallow: Robots_https.txt contains: User-agent: * Disallow: / 2) Add a rewrite rule to your web.config file. <rewrite> <rules> <rule name="HTTPSpecificRobots" stopProcessing="true"> <match url="(.*)" /> <conditions> <add input="{HTTPS}" pattern="on" ignoreCase="true" /> </conditions> <action type="Rewrite" url="robots_https.txt" /> </rule> </rules> </rewrite> 3) Test by going to: http://www.yoursite.com/robots.txt and https://www.yoursite.com/robots.txt This will at least help to prevent this from happening. I'm not sure that it will fix the problem if it already exists.
|
|
RedLeafDev
Certified ProductCart Developers Joined: 12-January-2010 Location: Portsmouth, NH Status: Offline Points: 28 |
Post Options
Thanks(0)
|
Small edit:
<match url="(.*)" /> change to: <match url="(.*?)/?robots\.txt$" />
|
|
Post Reply | Page <12 |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |