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
-
Why does Google pick a low priority page on my site?
Hi Guys. One of my pages ranks quite well for "mid year diaries 14-15" on Google. The problem is it's a really specific product page (A4, Hardback, day-to-a-page diary I think). It would be much better for the user to land on our mid-year diaries category, not really deep into the site. Why is Google prioritizing this product page over our general 'mid year diaries' category? Especially when the category would relate to the search more accurately? I work for TOAD diaries and I think our page rank is 10 for this search. Eagerly awaiting some insight 🙂 Thanks in advance everyone! Isaac.
On-Page Optimization | | isaac6630 -
Duplicate content on events site
I have an event website and for every day the event occurs the event has a page. For example: The Oktoberfest in Germany the event takes 16 days. My site would have 16 (almost)identical pages about the Oktoberfest(same text, adres, photos, contact info). The only difference between the pages is the date mentioned on the page. I use rich snippets. How does google treat my pages and what is the best practice.
On-Page Optimization | | dragonflo0 -
Redirecting to homepage ok?
I deleted a bunch of category pages (renamed mostly actually and thought they'd be auto redirected like my blog posts are but they weren't) so I used a plugin that reroutes any 404 page to the homepage. Is that the best thing to do in this situation? Google Webmasters says there are about 84 404-errors and this should get rid of those right? Is there anything SEO BAD about doing it this way?
On-Page Optimization | | dealblogger0 -
Losing Page Rank after 301 redirect from http to www
Hi Guys I have site-wide redirected all http// to www and all the category pages lost their page ranks (except home page). I would like to know if this is normal and is it one of the possible causes in losing keyword ranking?
On-Page Optimization | | ilovebodykits0 -
Temporary Redirect
I am having lot of Temporary Redirect on my reports, and all the links points to my ads server (openX). like this: http://ads.espectador.com/mod2/www/delivery/ck.php?n=a04fb31e&cb=138097 Here in this page there is an example.- How can I fix this? Thanks
On-Page Optimization | | informatica8100 -
Which is better, a directory 301 redirect or each page in the directory?
A customer of mine has a site with lots of articles and they are all quite spammy. They have not been affected by penguin yet so they asked what to do. I suggested losing the articles directory and 301 redirect to either the home page or another important page. Would a 301 redirect on the entire directory to a single page be the way to go or add redirects from each page within the directory and spread out redirects to various pages in website? Or do you have a better suggestion?
On-Page Optimization | | anthonytjm0 -
Good Internal Site Structure Idea?
Hello SEOMoz, After reading a bunch of your Site Structure articles, I've decided to make ours more flat. There are numerous pages on our site which are linked to directly from our homepage, wasting mysterious amounts of Link Juice every day. I want to remove most of these links so that the Fewer, and now more heavily weighted, Homepage Links will be more powerful... but I am worried that the pages which I am knocking down to the 3rd tier level already have high rank and are distributing this Juice to other pages. The problem is that 3 of these 9 pages are great for assisting our sales team, so I cannot take those 2 links off of the homepage...so I will be forced to Nofollow them instead. I am worried this is cutting down the number of pages on the site, also cutting out content which was previously indexed. Is this whole thing a good idea at all? And should I just leave those 2 pages alone because I can't remove the link? I'm thinking maybe I should rel=canonical it back to the homepage? I am ultimately trying to rank the homepage for the keyword "POS Software" and this is my on-site strategy for it. Maybe adding a link from those 2 pages that say "POS Software" back to the homepage is the best bet in this scenario? I am trying to learn the absolute best thing to do instead of guessing. Thanks! Derek
On-Page Optimization | | DerekM880 -
Site Speed Expert Referral Needed
We're looking for someone who can diagnose some site speed issues AND adjust the code, servers, etc. as needed. Does anyone know of an expert in this area?
On-Page Optimization | | BryanPhelps-BigLeapWeb0