Print Page | Close Window

Google Search brings up https homepage?

Printed From: ProductCart E-Commerce Solutions
Category: ProductCart
Forum Name: Using ProductCart
Forum Description: Running your store with ProductCart
URL: https://forum.productcart.com/forum_posts.asp?TID=5868
Printed Date: 06-July-2024 at 6:10am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Google Search brings up https homepage?
Posted By: Chris Hadden
Subject: Google Search brings up https homepage?
Date Posted: 04-April-2014 at 4:27pm
I noticed something today when our site was loading slowly. Google is showing our homepage as https://jewelryfindings-online.com  even when you type http://www.jewelryfindings-online.com in the search you get the other address. I don't fully understand this does anyone know why? I don't feel we should be using the secure side of things for the homepage. Seems considerably slower. Any help appreciated.
Thanks
Chris


-------------
Chris



Replies:
Posted By: Greg Dinger
Date Posted: 04-April-2014 at 4:40pm
Mark Shipp and I have also seen this occur.  I don't presently have a solution but you are not alone in this issue.

-------------
GreyBeard Design Group

Certified ProductCart Developer

Web Design/Development/Hosting

http://tinyurl.com/5c8t4t" rel="nofollow - Add-Ons & Custom Code |


Posted By: RedLeafDev
Date Posted: 07-April-2014 at 4:45pm
Hmmm. I thought that a 301 redirect in the web.config file might work. And, it does... Until you get to the checkout when you want it to go to SSL. Any more info on this, or a solution would be appreciated as we are seeing this on a couple of client's sites too.

-------------
http://www.redleafdevelopment.com" rel="nofollow - Red Leaf Development

Certified ProductCart Developers

www.redleafdevelopment.com


Posted By: Chris Hadden
Date Posted: 08-April-2014 at 10:55am
I don't know enough about this but in the google webmaster forum I found a similar post and this is the answer someone gave:

"For the record, in Java, it seems that response.sendRedirect automatically sets status to 302 (overriding manual set 301).

Ex:
                        
response.setStatus(HttpServletResponse.SC_MOVED_PERMANENTLY);
                        
response.setHeader("Location", app.getUrlSecure(true) + requesthistory.getLocalUrl());
                        
response.sendRedirect(app.getUrlSecure(true) + requesthistory.getLocalUrl());
                        
return;

So, removing the last two lines might have fixed the problem."



Would this have anything to do with the issue? I am using a 301 redirect on the homepage






-------------
Chris


Posted By: Chris Hadden
Date Posted: 01-May-2014 at 11:31am
Nothing on this ?  Does product cart answer on this board?


-------------
Chris


Posted By: whizzinpc
Date Posted: 01-May-2014 at 9:50pm
You can put a canonical tag on the homepage with http. That should do the trick.
<link rel="canonical" href="http://www.abc.com/" >



Posted By: Chris Hadden
Date Posted: 02-May-2014 at 11:08am
Ok thanks for the advice, this would be placed in the header section of the product cart homepage?

Currently that is something like ... http://www.mystore.com/store/pc/home.asp 




-------------
Chris


Posted By: whizzinpc
Date Posted: 02-May-2014 at 11:29am
It looks like your site already has the canonical on your homepage.


Posted By: Chris Hadden
Date Posted: 02-May-2014 at 11:48am
Ok, looks like there is one there.

<link rel="canonical" href=" view-source:http://www.jewelryfindings-online.com/store/pc/home.asp" rel="nofollow - http://www.jewelryfindings-online.com/store/pc/home.asp " />

It must have been there since the site first went up...based on that I would say your solution
is not working



-------------
Chris


Posted By: Chris Hadden
Date Posted: 02-May-2014 at 12:34pm
I was just looking at the 301 redirect for the homepage which is this:

<%
Response.Status="301 Moved Permanently"
Response.AddHeader "Location", "/store/pc/home.asp"
%>

Do you think the problem could have arisen because the full path to the home page is not there?


-------------
Chris


Posted By: whizzinpc
Date 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.


Posted By: RedLeafDev
Date 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.


-------------
http://www.redleafdevelopment.com" rel="nofollow - Red Leaf Development

Certified ProductCart Developers

www.redleafdevelopment.com


Posted By: RedLeafDev
Date Posted: 20-May-2014 at 3:16pm
Small edit:

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

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


-------------
http://www.redleafdevelopment.com" rel="nofollow - Red Leaf Development

Certified ProductCart Developers

www.redleafdevelopment.com



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net