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
-
Best site structure for us?
Hey guys, I have a somewhat silly question that I probably know the answer to - but would still like to hear your POV's. We're a WP theme making company but we also build other stuff. Context: 1. All demos for themes currently go under domain.com/Theme_A/ The demo is lorem ipsum so is marked noindex nofollow. That being said we get rocking analytics data usually (not sure if it's still valuable for G after the noindex). 2. Currently we need landing pages for themes and we're running them under domain.com/Theme_A/optimized-landing-page-title.php dofollow and indexed ofc. My question is...Would we be better off to include all landing pages under a domain.com/wordpress-themes/ category/tax and then go for the optimized-landing-page-title.php page? Does it make any difference either or? Right now we're not REALLY running them on subdomains (though the structure seems like it), they're just folders. We're thinking that more seo juice would flow through the different pages if we have them all under the same category, rather than basically starting from scratch each time under a new folder. Right? Thanks!!!
On-Page Optimization | | andy.bigbangthemes1 -
Site folder hierarchy 2016 ?
Hi, Would you say that based only on the "folder structure" that "somedomain.com/focus-keyword" has better conditions to rank well than "otherdomain.com/general-keyword/focus-keyword" ? Using Yoast SEO for WordPress when creating automatic XML sitemaps, URLS with subfolders seems to be getting lower priority. Thanks!
On-Page Optimization | | Agguk0 -
Blog Site Set-Up/Frequency
Hello! I am a new blogger that is just getting started. All I have done so far is purchase a domain name and signed up with Blue Host. From what I am reading, WordPress seems to be the most recommended plug-in to get going. There is a lot of material out there on SEO and I wanted the community's thoughts on where to start. My blog is intended to provide readers with information on a particular topic. It is a vast area with much to write about - I intend on populating the content myself/with the help of experts in the field. It is not news so it is not time sensitive. Here are my questions: 1. As this is a brand new site, should I be blogging every day or is couple of times a week sufficient? I am able to produce content fairly quickly in the beginning as there is a lot to write about. Should I write a whole lot of content first and then release it on a schedule (twice a week, daily, etc.)? As it is a new site, I don't want it to launch with just one article.. 2. I am taking a WordPress class next week, but as someone that is not too familiar with copy/backlinks, other mechanisms to boost SEO. does WordPress make it easy enough to optimize your site for search results or does it require more expertise? As far as I see, my first tasks are to 1. ) set up the site effectively so people can find it and 2.) create valuable/engaging content. Appreciate any advice on setting up the site, blogging frequency, other tips to get going. I don't want to launch a site and get dinged by Google for reasons I am unware of..At some point, when I have a robust set of content, I am thinking of FB advertising to increase traffic to the site. Seems a bit premature to do that at this point.. Thanks all in advance for your feedback!
On-Page Optimization | | mmprakash0 -
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 -
Should I link my 3 E-Commerce sites?
Good Morning, I have 3 E-Commerce sites that all sell the same products, but have unique content on them (unique text, unique urls, same products).... Up until now, I have not put any links from one to any of the others... I just started to wonder about that since these are all related to the same industry, and are owned by 1 company, what would be the downside to linking them... Does anyone have any advice on if I should link to each site from the other 2 sites? Also, if you think I should be linking them, please advise how you would do it (on which pages, how many links, anchor texts, etc...) Thanks a lot!
On-Page Optimization | | Prime850 -
Quick Question on Redirects
This might be a silly question, but one important enough for me to ensure that I understand the best practice of URL redirects... I'm thinking of changing my URL's and hierachy of some of my WP subpages around, in order to logically fit the keyword into the url and place the subpage closer to the root domain. My question is, when doing this, can I simply edit the URL and create a redirect after the fact, essentially killing the old URL. Or, do I create the new page with the updated URL and hierarchy, keeping the old page live and intact, but have that 301 redirect to its new corresponding destination? Thanks
On-Page Optimization | | JayAdams320 -
Same H1 tag in header across entire site
Should I have the same H1 tag in my header through out my entire site? Or is this considered to be self canalization for my main keywords. For example right now I have an H1 tag with my main targeted keywords on every page on my site, even if the pages content doesn't necessarily match the keywords in the H1 tag.
On-Page Optimization | | TRICORSystems0