Force SSL choice between 301 and 302 Response

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
8/15/2014 4:22:44 AM
Gravatar
Total Posts 19

Force SSL choice between 301 and 302 Response

Hi,

I decided to change my site over to the force SSL for all pages, mostly because I think it gains trust and also because Google is suggesting it may start using this as a weighting in results for certain sites. Whilst it may make no difference for my site, I figured better to do now than later when the site is bigger.

I read up a bit on the SEO of http > https redirects  and most people say Google can normally work out when a 302 should be a 301, but if you know it is permanent, always go with 301.  I accept that some people may want a 302, but I recon when people are selecting SSL forced for every page they want permanent.

I have edited the SiteUtils.ForceSSL code just to get this done quickly for me in case Google starts indexing both my pages and dilutes rank or some other horror stories I have read about. I know I should edit code, but can't afford to be out of results for 3 months "if" it makes a difference.

Would it be possible to add a config key for future code releases to allow people to choose whether they want 302 or 301 for their forced SSL response?

Keep up the great work guys!!

Matt

 

 

8/15/2014 4:24:01 AM
Gravatar
Total Posts 19

Re: Force SSL choice between 301 and 302 Response

"Should" was meant to read "Shouldn't"

8/15/2014 7:57:42 AM
Gravatar
Total Posts 18439

Re: Force SSL choice between 301 and 302 Response

Hi,

I will consider a change to enable a 301 redirect instead of a 302 from http to https. However, rest assured that the redirect is not important for google to know what url to index. If you go to site settings and check the box for all pages to use ssl, then the canonical url meta tag in the head of the page (and the urls in the sitemap.ashx) will reflect https and this is how google will know for sure the preferred url to index. I suppose in the absence of a canonical url and sitemap the redirect might possibly have some bearing but given the presence of https in the canonical url and in the sitemap there is no doubt or ambiguity about the correct url.

And I definitely recommend making all pages use ssl now that google is using it as a quality signal. I changed that on this site recently as well.

Hope that helps,

Joe

8/15/2014 8:16:18 AM
Gravatar
Total Posts 19

Re: Force SSL choice between 301 and 302 Response

Thanks Joe!

You must sign in to post in the forums. This thread is closed to new posts.