The Moz Q&A Forum

    • Forum
    • Questions
    • My Q&A
    • Users
    • Ask the Community

    Welcome to the Q&A Forum

    Browse the forum for helpful insights and fresh discussions about all things SEO.

    1. SEO and Digital Marketing Q&A Forum
    2. Categories
    3. Moz Tools
    4. 302 Status Code for .com but 200 Status Code for .com/

    302 Status Code for .com but 200 Status Code for .com/

    Moz Tools
    4 2 339
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as question
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • cccreationsinc
      cccreationsinc last edited by

      I ran a moz crawl report for one of my sites. For mywebsite.com I'm getting a 302 HTTP Status Code but for mywebsite.com/ I'm getting a 200 HTTP Status Code.

      mywebsite.com -Title tag "blank" - Meta Description "blank" - HTTP Status Code "302" - Referrer "blank" - Content Type Header "blank" - 301/302 target "/" - Rel-Canonical Target "blank"

      mywebsite.com/ - Title tag "correct tag" - Meta Description "correct tag" - HTTP Status Code "200" - Referrer "mysite.com" - Content Type Header "text/html" - 301/302 target "blank" - Rel-Canonical Target "mysite.com/"

      Will this cause any issues with the search engines? Is there a way to fix this?

      I'm on wordpress and use Yoast SEO premium plugin. I have sites ranking in many different niches and have done similar white hat SEO for all of my others. They are ranking in competitive niches but for some reason this site is in the 200-300s for basically all keywords in not a very competitive niche. It has excellent content, links and no penalties. I'm trying to find anything that could be the cause of this.  Thanks!

      <colgroup><col width="64"></colgroup>
      | Rel-Canonical Target |

      1 Reply Last reply Reply Quote 0
      • rjonesx. 0
        rjonesx. 0 last edited by

        This could be part of the culprit, but generally Google is pretty good at giving domains a "benefit of the doubt" so to speak when it comes to homepage redirects. You should first figure out why the redirect from the non trailing-slash version of your page is a 302 and not a 301. This would be something likely set at the webserver level rather than in Yoast or Wordpress, and it ought to be a 301.

        This is the code to make sure a trailing slash is in place for internal directories

        RewriteCond %{REQUEST_URI} !(/$|.)
        RewriteRule (.*) %{REQUEST_URI}/ [R=301,L]

        Did you notice if the same problem is true for directories as well as the homepage?

        cccreationsinc 1 Reply Last reply Reply Quote 4
        • cccreationsinc
          cccreationsinc @rjonesx. 0 last edited by

          Thanks for your response! The problem seems to only be for the homepage. It isn't happening for directories.

          rjonesx. 0 1 Reply Last reply Reply Quote 0
          • rjonesx. 0
            rjonesx. 0 @cccreationsinc last edited by

            This is definitely going to be a server-level configuration issue. Are you on Windows or Linux? What webserver are you using (IIS, Apache, nginx, Lighttpd?) Any chance you would PM me the URL so I can troubleshoot?

            1 Reply Last reply Reply Quote 3
            • 1 / 1
            • First post
              Last post
            • Why is MOZ crawl is returning URLs with variable results showing Missing Meta Desc? Example: http://nw-naturals.net/?page_number_0=47
              evolvingSEO
              evolvingSEO
              0
              3
              47

            • Exact match .ORG/.INFO vs. all query terms .COM - proof?
              SEO5Team
              SEO5Team
              0
              4
              503

            • Difference in data between http://pro.seomoz.org/tools/keyword-difficulty and http://lsapi.seomoz.com/linkscape/url-metrics/
              claytons
              claytons
              0
              3
              507

            • Domain.com and domain.com/index.html duplicate content in reports even with rewrite on
              SeanKoenig
              SeanKoenig
              0
              8
              1.2k

            • 4xx status code a page that cannot be accessed..
              ChiarynMiranda
              ChiarynMiranda
              0
              2
              394

            • Http://lsapi.seomoz.com pop up
              KeriMorgret
              KeriMorgret
              0
              4
              4.8k

            • What is the difference between followed/no followed/ internal/ external links? And how do i improve them?
              AndreVanKets
              AndreVanKets
              0
              2
              751

            Get started with Moz Pro!

            Unlock the power of advanced SEO tools and data-driven insights.

            Start my free trial
            Products
            • Moz Pro
            • Moz Local
            • Moz API
            • Moz Data
            • STAT
            • Product Updates
            Moz Solutions
            • SMB Solutions
            • Agency Solutions
            • Enterprise Solutions
            • Digital Marketers
            Free SEO Tools
            • Domain Authority Checker
            • Link Explorer
            • Keyword Explorer
            • Competitive Research
            • Brand Authority Checker
            • Local Citation Checker
            • MozBar Extension
            • MozCast
            Resources
            • Blog
            • SEO Learning Center
            • Help Hub
            • Beginner's Guide to SEO
            • How-to Guides
            • Moz Academy
            • API Docs
            About Moz
            • About
            • Team
            • Careers
            • Contact
            Why Moz
            • Case Studies
            • Testimonials
            Get Involved
            • Become an Affiliate
            • MozCon
            • Webinars
            • Practical Marketer Series
            • MozPod
            Connect with us

            Contact the Help team

            Join our newsletter
            Moz logo
            © 2021 - 2026 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
            • Accessibility
            • Terms of Use
            • Privacy