ProductCart E-Commerce Solutions Homepage
Forum Home Forum Home > ProductCart > Using ProductCart
  New Posts New Posts RSS Feed - Google Search brings up https homepage?
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Google Search brings up https homepage?

 Post Reply Post Reply Page  <12
Author
Message
whizzinpc View Drop Down
Newbie
Newbie
Avatar

Joined: 17-January-2006
Location: California
Status: Offline
Points: 20
Post Options Post Options   Thanks (0) Thanks(0)   Quote whizzinpc Quote  Post ReplyReply Direct Link To This Post Posted: 02-May-2014 at 1:35pm
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.
Back to Top
RedLeafDev View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers


Joined: 12-January-2010
Location: Portsmouth, NH
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedLeafDev Quote  Post ReplyReply Direct Link To This Post Posted: 20-May-2014 at 3:09pm
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.
Red Leaf Development

Certified ProductCart Developers

www.redleafdevelopment.com
Back to Top
RedLeafDev View Drop Down
Certified ProductCart Developers
Certified ProductCart Developers


Joined: 12-January-2010
Location: Portsmouth, NH
Status: Offline
Points: 28
Post Options Post Options   Thanks (0) Thanks(0)   Quote RedLeafDev Quote  Post ReplyReply Direct Link To This Post Posted: 20-May-2014 at 3:16pm
Small edit:

<match url="(.*)" />

change to:
<match url="(.*?)/?robots\.txt$" />
Red Leaf Development

Certified ProductCart Developers

www.redleafdevelopment.com
Back to Top
 Post Reply Post Reply Page  <12
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.059 seconds.