undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • SEO Q&A
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • Case Studies
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • Case Studies

      Explore how Moz drives ROI with a proven track record of success.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

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

  1. Home
  2. SEO Tactics
  3. Technical SEO
  4. 301 Redirects in subfolders

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

301 Redirects in subfolders

Technical SEO
5
11
1.7k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • Therealmattyd
    Therealmattyd last edited by May 14, 2014, 11:27 AM

    Hi, we're making our site into a static site but I would like to transfer the Google juice. Most of the links and database exist on subfolders though. Could I simply do 301 redirects on the subfolders and retain the value or does it have to be on the full domain?

    1 Reply Last reply Reply Quote 0
    • AlanMosley
      AlanMosley @Vacatia_SEO last edited by May 20, 2014, 10:32 AM May 20, 2014, 10:32 AM

      As I said before, if you are changing just the domain, then you can do the whole site in one redirect, but if you have a different page structure and thousands of pages, it would be a waste of time to do any pages that does not have a external link.

      1 Reply Last reply Reply Quote 0
      • Vacatia_SEO
        Vacatia_SEO @JaneCopland last edited by May 20, 2014, 10:26 AM May 20, 2014, 10:26 AM

        I'm with you Jane. It's not that much effort and it avoids any confusion or 404s.

        AlanMosley 1 Reply Last reply May 20, 2014, 10:32 AM Reply Quote 0
        • JaneCopland
          JaneCopland @AlanMosley last edited by May 20, 2014, 8:10 AM May 20, 2014, 8:10 AM

          Honestly, doing site-wide redirects can be very simple if done correctly in .htaccess, avoiding anyone (bot or browser) encountering 404s. Redirecting properly avoids a 404 bloat in Webmaster Tools, allowing the webmaster to identify "real" 404s and fix them as well. I'd go with redirecting anything you plan to move.

          Vacatia_SEO 1 Reply Last reply May 20, 2014, 10:26 AM Reply Quote 0
          • AlanMosley
            AlanMosley @Vacatia_SEO last edited by May 19, 2014, 9:47 PM May 19, 2014, 9:47 PM

            In this very rare case, they would get a 404, with a link to the home page.

            to 301 every page in case it has a bookmark is a waste of effort

            JaneCopland 1 Reply Last reply May 20, 2014, 8:10 AM Reply Quote 0
            • Vacatia_SEO
              Vacatia_SEO @AlanMosley last edited by May 19, 2014, 3:41 PM May 19, 2014, 3:41 PM

              what if someone bookmarked a page that you changed the URL for? That page might not have any links but it can still receive traffic.

              It is my recommendation that if one is doing a massive redirect that all pages should have a rule written for it. Why risk a 404?

              AlanMosley 1 Reply Last reply May 19, 2014, 9:47 PM Reply Quote 0
              • JaneCopland
                JaneCopland last edited by May 19, 2014, 5:58 AM May 19, 2014, 5:58 AM

                Hi Matt,

                If you 301 one URL to another, the majority of the metrics previously afforded to the old URL will be transferred to the new URL. Various evidence, some of it quite anecdotal, says that not all the authority passes from the old to the new, but it's certainly the best option you have if you want to change URLs.

                If you are moving to a new domain, you can write a rule in your .htaccess file (if using an Apache server) or in your control panel (if using an IIS server) that transfers every URL to its new location. Even if URLs have no external links, this will simply direct any traffic to the old URLs to their new locations.

                1 Reply Last reply Reply Quote 1
                • AlanMosley
                  AlanMosley @Vacatia_SEO last edited by May 15, 2014, 9:37 PM May 15, 2014, 9:37 PM

                  Because google will drop that url and crawl the new one by itself.

                  If all you are doing is changing domain then one 301 will do all anyhow.

                  but if you are 301'ing page by page, then just do the ones that have external links.

                  Vacatia_SEO 1 Reply Last reply May 19, 2014, 3:41 PM Reply Quote 0
                  • Vacatia_SEO
                    Vacatia_SEO last edited by May 15, 2014, 6:06 PM May 15, 2014, 6:06 PM

                    Alan, there is no value in redirecting pages without external links?

                    I am in the process of implementing a massive 301 redirect project as we are changing the URL structure of our site. Our site has been indexed fully by Google for quite some time but most pages do not have external links pointing to them. So if someone searches a KW that triggers a deep linked page, why would I not redirect that page to its new URL?

                    AlanMosley 1 Reply Last reply May 15, 2014, 9:37 PM Reply Quote 0
                    • AlanMosley
                      AlanMosley last edited by May 14, 2014, 1:43 PM May 14, 2014, 1:43 PM

                      You can 301 any page to anywhere, that not a problem, but before you waste any time, only 301 the pages that have external links, there is no value in 301'ing pages unless they do.

                      1 Reply Last reply Reply Quote 0
                      • David-Kley
                        David-Kley last edited by May 14, 2014, 11:35 AM May 14, 2014, 11:33 AM

                        As long as the url is accessible, it doesnt matter. You can redirect from a subfolder, or using root domain.

                        One thing to remember, make sure you redirect both www, and non-www versions. Are you using cpanel? It makes this a super easy process. If not, let me know, and I can supply you with some htaccess rules to get you started.

                        *Keep in mind, all link juice is not always transferred. Generally most will be passed through, but I just wanted to make you aware.

                        1 Reply Last reply Reply Quote 1
                        • 1 / 1
                        1 out of 11
                        • First post
                          1/11
                          Last post

                        Got a burning SEO question?

                        Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                        Start my free trial


                        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.

                        • See all categories

                        Related Questions

                        • aliho

                          What is the difference between 301 redirects and backlinks?

                          i have seen some 301 redirects on my site  billsonline, can anyone please explain the difference between backlinks and 301 redirects,  i have read some articles where the writer was stating  that  301 are not good for website.

                          Technical SEO | May 9, 2024, 5:14 PM | aliho
                          0
                        • Cocoonfxmedia

                          301 Redirect non existant pages

                          Hi I have 100's of URL's appearing in Search Console for example: ?p=1_1 These go to on to 5_200 etc.. I have tried to do htaccess and the mod rewrite is on as I can redirect directories to the root i.e RewriteRule ^web_example(.*)$ /$1 [R=301,N,L] However I have tried all kinds of variations to redirect ?p= and either it doesn't work at all or it crashes the website. Can anyone point me in the right direction to fix this.

                          Technical SEO | Dec 15, 2015, 5:51 PM | Cocoonfxmedia
                          0
                        • Silviu

                          301 redirect relative or absolute path?

                          Hello everyone, Recently we've changed the URL structure on our website, and of course we had to 301 redirect the old urls to the coresponding new ones. The way the technical guys did this is: "http://www.domain.com/old-url.html" 301 redirect to "/new-url.html"
                          meaning as a relative redirect path, not an absolute one like this:
                          "http://www.domain.com/old-url.html" 301 redirect to "http://www.domain.com/new-url.html" This happened for few thousands urls, and the fact is the organic traffic dropped for those pages after this change. (no other changes were made on these pages and the new urls are as seo friendly as possible, A grade on On-Page Grader). The question is: does the relative redirect negatively affects seo, or it counts the same as an absolute path redirect? Thanks,
                          S.

                          Technical SEO | Oct 24, 2013, 7:01 AM | Silviu
                          0
                        • SDSLaw

                          Questions about the Sandbox and 301 Redirects

                          Does the sandbox still exist?  What if you have a brand new URL and do a 301 redirect from another website because the name of the service business changed? Thanks for any insight and help.

                          Technical SEO | Jun 22, 2013, 10:24 AM | SDSLaw
                          0
                        • Oxfordcomma

                          Increase 404 errors or 301 redirects?

                          Hi all, I'm working on an e-commerce site that sells products that may only be available for a certain period of time. Eg. A product may only be selling for 1 year and then be permanently out of stock. When a product goes out of stock, the page is removed from the site regardless of any links it may have gotten over time. I am trying to figure out the best way to handle these permanently out of stock pages. At the moment, the site is set up to return a 404 page for each of these products. There are currently 600 (and increasing) instances of this appearing on Google Webmasters. I have read that too many 404 errors may have a negative impact on your site, and so thought I might 301 redirect these URLs to a more appropriate page. However I've also read that too many 301 redirects may have a negative impact on your site. I foresee this to be an issue several years down the road when the site has thousands of expired products which will result in thousands of 404 errors or 301 redirects depending on which route I take. Which would be the better route? Is there a better solution?

                          Technical SEO | Jun 6, 2013, 5:08 AM | Oxfordcomma
                          0
                        • ulefos

                          Remove html file extension and 301 redirects

                          Hi Recently I ask for some work done on my website from a company,  but I am not sure what they've done is right.
                          What I wanted was html file extensions to be removed like
                          /ash-logs.html to /ash-logs
                          also the index.html to www.timports.co.uk
                          I have done a crawl diagnostics and have duplicate page content and 32 page title duplicates. This is so doing my head in please help This is what is in the .htaccess file <ifmodule pagespeed_module="">ModPagespeed on
                          ModPagespeedEnableFilters extend_cache,combine_css, collapse_whitespace,move_css_to_head, remove_comments</ifmodule> <ifmodule mod_headers.c="">Header set Connection keep-alive</ifmodule> <ifmodule mod_rewrite.c="">Options +FollowSymLinks -MultiViews</ifmodule> DirectoryIndex index.html RewriteEngine On 
                           # Rewrite valid requests on .html files  RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^ %{REQUEST_URI}.html?rw=1 [L,QSA] 
                           # Return 404 on direct requests against .html files RewriteCond %{REQUEST_URI} .html$  
                          RewriteCond %{QUERY_STRING} !rw=1 [NC]
                           RewriteRule ^ - [R=404] AddCharset UTF-8 .html # <filesmatch “.(js|css|html|htm|php|xml|swf|flv|ashx)$”="">#SetOutputFilter DEFLATE #</filesmatch> <ifmodule mod_expires.c="">ExpiresActive On
                          ExpiresByType image/gif "access plus 1 years"
                          ExpiresByType image/jpeg "access plus 1 years"
                          ExpiresByType image/png "access plus 1 years"
                          ExpiresByType image/x-icon "access plus 1 years"
                          ExpiresByType image/jpg "access plus 1 years"
                          ExpiresByType text/css "access 1 years"
                          ExpiresByType text/x-javascript "access 1 years"
                          ExpiresByType application/javascript "access 1 years"
                          ExpiresByType image/x-icon "access 1 years"</ifmodule> <files 403.shtml="">order allow,deny allow from all</files> redirect 301 /PRODUCTS http://www.timports.co.uk/kiln-dried-logs
                          redirect 301 /kindling_firewood.html http://www.timports.co.uk/kindling-firewood.html
                          redirect 301 /about_us.html http://www.timports.co.uk/about-us.html
                          redirect 301 /log_delivery.html http://www.timports.co.uk/log-delivery.html redirect 301 /oak_boards_delivery.html http://www.timports.co.uk/oak-boards-delivery.html
                          redirect 301 /un_edged_oak_boards.html http://www.timports.co.uk/un-edged-oak-boards.html
                          redirect 301 /wholesale_logs.html http://www.timports.co.uk/wholesale-logs.html redirect 301 /privacy_policy.html http://www.timports.co.uk/privacy-policy.html redirect 301 /payment_failed.html http://www.timports.co.uk/payment-failed.html redirect 301 /payment_info.html http://www.timports.co.uk/payment-info.html

                          Technical SEO | Apr 11, 2013, 10:03 AM | ulefos
                          1
                        • Adrian_Kingwell

                          What tools produce a complete list of all URLs for 301 redirects?

                          I am project managing the rebuild of a major corporate website and need to set up 301 redirects from the old pages to the new ones. The problem is that the old site sits on multiple CMS platforms so there is no way I can get a list of pages from the old CMS. Is there a good tool out there that will crawl through all the sites and produce a nice spreadsheet with all the URLs on it? Somebody mentioned Xenu but I have never used it. Any recommendations? Thanks -Adrian

                          Technical SEO | Feb 24, 2012, 8:34 AM | Adrian_Kingwell
                          0
                        • steffen_

                          Double 301 redirect

                          Hi together, due to some technical reasons I have redirect (301) an existing link two times. Example: www.mydomain.com/root/site.html > 301 > www.mydomain.com/site.html > 301 www.mydomain.com/site_new.html Is there anybody how has got some experience like doing a double redirect? What about link juice? Best regards Steffen

                          Technical SEO | Sep 18, 2011, 2:39 PM | steffen_
                          0

                        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
                        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 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                        • Accessibility
                        • Terms of Use
                        • Privacy

                        Looks like your connection to Moz was lost, please wait while we try to reconnect.