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. On-Page / Site Optimization
    4. 301 redirects from several sub-pages to one sub-page

    301 redirects from several sub-pages to one sub-page

    On-Page / Site Optimization
    4 2 1.6k
    • 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.
    • MarieA
      MarieA last edited by

      Hi!

      I have 14 sub-pages i deleted earlier today. But ofcourse Google can still find them, and gives everyone that gives them a go a 404 error. I have come to the understading that this wil hurt the rest of my site, at least as long as Google have them indexed.

      These sub-pages lies in 3 different folders, and i want to redirect them to a sub-page in a folder number 4.

      I have already an htaccess file, but i just simply cant get it to work! It is the same file as i use for redirecting trafic from mydomain.no to www.mydomain.no, and i have tried every kind of variation i can think of with the sub-pages.

      Has anyone perhaps had the same problem before, or for any other reason has the solution, and can help me with how to compose the htaccess file? 🙂

      You have to excuse me if i'm using the wrong terms, missing something i should have seen under water while wearing a blindfold, or i am misspelling anything. I am neither very experienced with anything surrounding seo or anything else that has with internet to do, nor am i from an englishspeaking country.

      Hope someone here can light up my path 🙂 Thats at least something you can say in norwegian...

      1 Reply Last reply Reply Quote 1
      • Jinx14678
        Jinx14678 last edited by

        Hi,

        Use;

        Redirect 301 /olddirectory/example.html http://www.example.com/newdirectorylocation.html

        keep in mind that it is relative to document root, and if you have spaces in any of these, you will need to put quotation marks around like so...

        Redirect 301 "/olddirectory/example 2 of 2.html" http://www.example.com/newdirectorylocation.html

        hope this helps!

        w00t!

        if you want to do some more research  http://www.webweaver.nu/html-tips/web-redirection.shtml

        1 Reply Last reply Reply Quote 2
        • MarieA
          MarieA last edited by

          OMG you just made my day! Thank you so much 🙂

          Jinx14678 1 Reply Last reply Reply Quote 0
          • Jinx14678
            Jinx14678 @MarieA last edited by

            🙂

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            • Combining products - edit existing product page or 301 redirect to new page?
              hefazmarket91
              hefazmarket91
              0
              26
              166

            • 301 Redirect or landing page
              GastonRiera
              GastonRiera
              0
              7
              624

            • Should old pages that have being 301 redirected but have no/mimimal traffic be deleted?
              LinckB
              LinckB
              0
              3
              76

            • 301 Redirects From a URL without Keyphrases to one With Keyphrases
              MickEdwards
              MickEdwards
              0
              4
              79

            • Losing Page Rank after 301 redirect from http to www
              yeagerd
              yeagerd
              0
              5
              335

            • Which redirect to use when redirecting to https page from http page
              AlanBleiweiss
              AlanBleiweiss
              0
              2
              302

            • How do I do a 301 Redirect in IIS 7 from http://www.freightmonster.com/index.html to http://freightmonster.com/index.html when I don't have a physical page to redirect?
              EricaMcGillivray
              EricaMcGillivray
              0
              4
              1.0k

            • 301 redirect OK for a newer version of a page that is a different url?
              Dan-Petrovic
              Dan-Petrovic
              0
              2
              826

            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