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
-
Client Worried About SEO Decline After Site Redesign
Hi, We're in the process of redesigning www.directvillasflorida.com/ for a client. The client has recently expressed concern that their rankings may drop off after the change. Here are some facts about the site: As you can see, the current homepage is _very _keyword heavy. They have a DA of 26 and are ranking #1 for 'florida villas', higher than their more authoritative competitors. They are also ranking #1 in the mobile search results, despite not being mobile-friendly. Their link profile is pretty average and the anchor texts are pretty keyword-rich 'florida villas' appears 30 times with a 4.41% keyword density 'florida' appears 66 times with a 3.31% density The client has admitted keyword stuffing years ago and hasn't changed anything because it worked and still is working. In the site redesign, we've cut out a lot of the spammy, keyword-rich content and he's worried he'll suffer because of this. Any ideas what to do here? It seems clear that the site is breaching Google's guidelines, but, for whatever reason, isn't being picked up by Google. Cheers, Lewis N.B. The client is just paying us for a redesign, not SEO.
On-Page Optimization | | PeaSoupDigital0 -
How should we act regarding a 404 that came from a 301?
Hi! Some time ago we changed our domain from canexel.net to canexel.es. We spent some time "cleaning" the backlinks to the ".net" domain since we had been penalized by penguin. After some time we went ahead and did a 301 from .net to .es january 15. From that date on we've noticed that webmaster tools has been detecting a really big increase oon 404 detected on our site. All this 404 come from .net pages that have been cached by google but don't exist anymore. The problem is that the 301 has made google believe that they exist also on our .es site (where of course don't exist either), and 404 have appeared from this non existing pages pinting to other non existing pages. We want to to eliminate the urls from WMT but we don't know if we should eliminate them both from the .net and .es domains or just from the .net one. We also would like to know if this would penalize our SEO. Thanks
On-Page Optimization | | Canexel0 -
Google directs people to the wrong page on my site.
My site is split up into sections about different services my company offers. My problem is, when someone does a search for one of those services, My site's main page comes up rather than the page devoted to the particular service they were searching for. What can I do to make the pages about a specific service rank above my main page?
On-Page Optimization | | bradgmo0 -
SEO for a site in development
We've recently taken on a new client for an initial 6 months for SEO (until their new site is going live) to help build traffic to the site. They are currently getting a new website built so don't want work done on their current site... but due to the current structure it is making it difficult for us to improve rankings for a number of keywords. They are essentially a booking engine for services across the UK so it is just a home page with a search filtering through their services, locations and dates which leads to a results page. It is a combination of services and locations we need to target keywords for but there are no appropriate landing pages due to the site layout. The one thing they are happy for us to work on is the blog, so my question is would it be best to create landing pages on the blog targeting keywords such as 'sports massages in London' and build links to these pages? Then when it is time for the new site, with new appropriate landing pages, simply 301 redirect these pages? If anyone has any input on this idea or suggestions for other ways about it we'd be delighted to hear from you Thanks
On-Page Optimization | | Will_Craig0 -
Does Archive pages help in indexation of the site?
Hello, we have an argue internally regarding if we should keep the archive pages on a news site or not. Pro Archive pages help indexation of the news. although not all of us are sure about this. Con archive pages receive from none to little traffic archive pages are source of duplicate content, duplicate titles - which we can manage some how but does it worth? What is your opinion on this topic, should we keep it or not? thanks, Irina
On-Page Optimization | | InformMedia0 -
URL Structure for Home Decorating site
Hi, I am about to launch a home decorating ideas website. I am stuck to determining the ideal URL structure, and the options are: Category: myhomedecoratingsite.com/room/master-suite/
On-Page Optimization | | adepalma
myhomedecoratingsite.com/kitchen/
myhomedecoratingsite.com/room/living
myhomedecoratingsite.com/master-suite/
myhomedecoratingsite.com/living-room/ Post: myhomedecoratingsite.com/interior/beautiful-master-suite/
myhomedecoratingsite.com/interior/cozy-living-room/
myhomedecoratingsite.com/room/master-suite/beautiful-modern-suite/
myhomedecoratingsite.com/room/living/cozy-contemporary-living Are these any good? What your best suggestion? Thanks in advance for your inputs. Al0 -
Trying to maintain rank while switching back & forth from sitewide 301 to 302 redirects?
My company's website has earned industry "authority" over the years and ranks well for a number of keywords. For reasons not worth explaining, we've moved the entire site (all pages) to be secured (https from http). When we launch our completely new website in 5 months from now, we will launch it as "http:" For the next 5 months, we're stuck with using site-wide "https". Is it better to 301 or 302 all pages (from http -> https), with the intent to move back to 301 in 5 months from now? Obviously, this situation is not ideal, but we'd like to preserve as much authority/presence as possible. What should we do and why? Any input would be greatly appreciated!
On-Page Optimization | | WhiteCap0 -
Suggestions on plans to optimize my site? (NOOB)
I am currently trying to plan how to optimize my site based on keywords. I read and I understand site architecture and usability http://www.seomoz.org/blog/site-architecture-for-seo , but I am still somewhat confused about how to target each keyword per page or when http://www.seomoz.org/img/upload/splitting-keyword-targeted-.gif Let me give you an example. We build databases for SME's using 3 different technologies. One of them is MS Access. Based on PPC campaigns and keyword research some of the possible keywords might be ms access programmer ms access consultants access database experts According to the link provided, should these be separate pages? I feel if they were, our site nativigation would be cluttered and clients would not be benefiting from them at all. It might even lead to some redundant data which I believe is bad right? My feeling is to make one page and target one keyword, but I'm not sure. For example, see one of our top ranking competitors http://www.justgetproductive.com/content/access-programmer/index.php Please, look at the footer? Is that actually how I should structure my links? I hope the answer is NO! Then again, if I do just have one page targeting one keyword, what do I do about the others? Do I just try to use blog posts/articles addressing those keywords? Do I not target them at all? Thanks for any advice, please keep in mind I am just getting started. My approach is to create a plan to outline everything before I put a lot of time into it.
On-Page Optimization | | emcacace1