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. Technical SEO Issues
    4. A technical 301 Redirect Question

    A technical 301 Redirect Question

    Technical SEO Issues
    2 2 890
    • 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.
    • EssEEmily
      EssEEmily last edited by

      Alright, I'm taking a chance and stepping into the developer role here...something completely out of my comfort zone so bear with me.

      We have a pretty site built in PHP (www.dassant.com) and we are coming across some duplicate content issues. For example, these are supposed to be the same page:

      http://www.dassant.com/products.php

      and

      http://www.dassant.com/products

      So the SEO in me states the obvious: We need a 301 redirect stat! Unfortunately, our developer went MIA and I am having the hardest time getting a 301 implemented.

      After some research I found the code that I need to paste into the PHP (for this specific page):

      Header( "HTTP/1.1 301 Moved Permanently" );
      Header( "Location: http://www.dassant.com/products" );
      ?>

      However, when I paste it in, upload and refresh the page, I get these error messages in the (multiple) browsers I use. (See attached)

      http://imgur.com/a/1lar5

      With my limited knowledge I can't find these supposed other redirects so I'm stumped. Can anyone shed some light?

      Thank you in advance!

      1lar5

      1 Reply Last reply Reply Quote 0
      • tmtoseo
        tmtoseo last edited by

        Looks like both URLs are being rendered from the same View (products.php). Depending on how your site was implemented you're going to have to address it at the controller and/or rewrites level.

        What the error says is that the page is redirecting to itself ad-infinitum.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • 301 Redirect Question
          RobCairns
          RobCairns
          0
          3
          131

        • 301 redirect file question
          tretanto
          tretanto
          0
          7
          106

        • Site Penalized - 301 Redirect Question
          JaneCopland
          JaneCopland
          0
          10
          326

        • 301 Redirect - Technical Question
          crackingmedia
          crackingmedia
          0
          2
          108

        • Redirect a 301 Redirect
          RedCaffeine
          RedCaffeine
          0
          5
          98

        • 301 Redirect question www to root.com
          tgr0ss
          tgr0ss
          0
          3
          222

        • Quick Seo question regarding 301 redirect
          AlanMosley
          AlanMosley
          0
          4
          437

        • 301 Redirect Question
          Yo_Adrian
          Yo_Adrian
          0
          3
          433

        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