Site has 302 redirects for HTTP to HTTPS when it should be 301
-
Hey all,
In the latest Moz crawl, certain pages on our website have shown as having 302 redirects for the http to https, but not all.
There should be a 301 solution, but wanted to see if anyone had any advice or guidance. Thanks!
-
The simplest solution to fix this quickly is to go to the .htaccess file, add a rule of 301 redirect from http to https, and then it should be good.
The .htaccess file has more priority than redirects in the site code, so it will be referred to first, before the 302 redirect takes place. Alternatively, you could check the site code or add-ons, the Cpanel configuration or even CloudFlare (if you are using)
Daniel Rika - Dalerio Consulting
https://dalerioconsulting.com/
info@dalerioconsulting.com
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
Classified ads site and thin content + titles
Hello, i have two questions. Issue 1 is that we are a classified ads site. I started thinking, analyzing why im not ranking even tho i have a lot more content than others and my backlink profile is also better. Googling the advertisements i see that 95% of it is duplicate content. People usually who advertise, add the same add to 10 maybe 30 sites. For google this is duplicate content. Any ideas what to do? I can manually edit ads, to write a bit of unique content, but that is not a long term startegy. Question 2: My titles are all the same - Unique Name - Keyword im trying to rank for. There is around 1000 of such pages. Should i mix the titles up or it is still better to have 1 keyword which will help me to rank?
On-Page Optimization | | advertisingcloud0 -
Can lost pages be redirected with a 301 in order to do not lost keyword rankings?
Hi, I have got a website and some posts rank well, but I am not so interested in keep them for branding reasons. So I planned to do 301 redirects to home and remove those contents. Is it ok? Thanks!
On-Page Optimization | | patrizia_h0 -
Why ranks my site so bad?
hello together, i think, that you read questions like this very often, but i hope someone has some good ideas for me. https://goo.gl/3iOmcqy with the keyword "sophos sg 210" we rank very bad. But i don't know why 😞 We have trust elements, a very good "avergage time on page" unique content... But i don't know, what can we make better 😞 Thx you so much
On-Page Optimization | | enbitcon0 -
Duplicate Content, http vs https
Hi All! I just discovered that a client of ours a duplicate content issue. Essentially they have approximately 20 pages that have an http and an https version. Is there a better way to handle this than a simple 301? Regards, Frank
On-Page Optimization | | FrankSweeney0 -
301, Canonical, and Page Authority
I have been trying to find an answer to this question for awhile now but I am having trouble. I have a clients site that I need to redirect and Canonical the pages to correct duplicate content issues and title tags however, the issue with this client is that some of the www. pages have a higher PA than non-www and the reverse is true. I am wondering if there is an issue with chasing the PA to get the highest PA per page (even if this means the site is going to be a mix of www. and non-www. pages)? I am extremely new to SEO so I apologize ahead of time if I missed this in the forum.
On-Page Optimization | | Highline_Ideas0 -
302 redirect (temporary redirect)
Hello guys, I have a stupid problem, i guess you solved long time ago. After i crawl my website, i found out that i have 8k temporary redirect (302 redirect). All of them came from www.domain.com/enable-cookies, there are 8 k of this type. I guess i am not first one with magento having this problem. Could you explain what happen in fact? And more than that could you explain how to fix it? I bet people will find this thread important i will not be the last one with this problem Thank you in advance. With Respect, Andrei
On-Page Optimization | | Shanaki0 -
How do I do a 301 Redirect in Wordpress
I have several pages that are showing up as "duplicate" on my Wordpress based site based upon the structure of site. I was wondering how to do a 301 redirect for these pages
On-Page Optimization | | SteveSweat0 -
Best way to link to an affiliate site.
I have a site that promotes a single affiliate product. Would it be better to have a "buy" button in the content that goes straight to the external affiliates website or should I send it all to an internal page that redirects thus only having 1 external link to the product site.
On-Page Optimization | | jafabel0