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. Should we handle this redirect differently?

    Should we handle this redirect differently?

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

      So our question is should we handle page redirection/rewriting in php or in .htaccess (with a specific problem we are running into outlined below).

      We have an ecommerce store in a subfolder of our site (example.com/store/).  In the next folder down we have a group of widgets(www.example.com/store/widget-group1).  Recently we put a .htaccess redirect in the top level folder (example.com/store/.htaccess), in order to re-write some URL’s and also 301 a page to another page.  This seems to be negatively affecting our /widgets-group1/ subfolder however (organic traffic to example.com/store/widget-group1) took a nose dive 3 days after putting the .htaccess redirect in place on the /store/ folder and it has not recovered 8 days later).

      *Nothing appears outwardly wrong with the current setup to the eye when viewing the pages or requesting as googlebot (the only issue being the nose dive in organic traffic lol)

      *both subfolders are setup in apache config file to allow local overrides of .htaccess as follows:

      <directory store="" widget-group1="">Options -Indexes FollowSymLinks -MultiViews
      AllowOverride All
      Order allow,deny
      allow from all</directory>

      <directory store="">Options -Indexes FollowSymLinks -MultiViews
      AllowOverride All
      Order allow,deny
      allow from all</directory>

      1 Reply Last reply Reply Quote 0
      • customerparadigm.com
        customerparadigm.com last edited by

        Without seeing the actual 301s and tracing it all on the server, my guess is that that what might have happened during the 301 process is that all of the server rules in .htaccess is forcing a user to go through multiple "hops" before the redirect is complete.

        This is a simplified version, but what might be happening is something like this:

        /store/widget-group1/ --> /store/widget-group1/index.php --> /store/widget-group1/index.html  --> /store/index.php?widget-group1

        If this is the case, I'd try to create a 301 that reduces the number of hops.

        This page discusses how Matt Cutts of Google shoes that after a few 301 hops, Google may give up crawling:
        http://www.mktdojo.com/matt-cutts-discusses-301-redirect-limits/

        Hope this helps...

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Redirection chain and Javascript Redirect
          0
          1
          19

        • What is the difference between 301 redirects and backlinks?
          MickEdwards
          MickEdwards
          0
          4
          66

        • Heroku, Subdomains, redirecting to different servers & SEO
          Alternatively.marketing
          Alternatively.marketing
          0
          3
          76

        • Best way to handle 301 redirects on a business directory
          0
          1
          44

        • How to redirect subfolder on different domain to another but same ftp
          Stramark
          Stramark
          0
          2
          237

        • Redirect a 301 Redirect
          RedCaffeine
          RedCaffeine
          0
          5
          98

        • What is the difference between 301 redirect to 404 vs just 404.
          SEO5Team
          SEO5Team
          0
          3
          3.3k

        • Redirect or not to redirect
          AlanMosley
          AlanMosley
          0
          7
          458

        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