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. 301 redirecting some pages directly, and the rest to a single page

    301 redirecting some pages directly, and the rest to a single page

    Technical SEO Issues
    3 2 703
    • 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.
    • RyanWhitney15
      RyanWhitney15 last edited by

      I've read through the Redirect guide here already but can't get this down in my .htaccess

      I want to redirect some pages specifically (/contactinfo.html to the new /contact.php)

      And I want all other pages (not all have equivalent pages on the new site) to redirect to my new (index.php) homepage.

      How can I set it up so that some specific pages redirect directly, and all others go to one page?

      I already have the specific oldpage.html -> newpage.php redirects in place, just need to figure out the broad one for everything else.

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

        hi -
        how many pages are we talking here?

        check with your website host. many of of them have redirect utilities (such as isapi_rewrite : http://www.isapirewrite.com/) installed on the server (or just "rewrite" for apache i think) that will allow you to add a set of rules to your .htacess so it filters the way you want every time someone hits an old page. you would need 2 rules:

        1.) when site is contactinfo.html  --> contact.php
        2.) when all others ---> send to index.php

        i would highly advise forwarding more relevant pages to their new equivalents if they are available. doing it the way you've mentioned will send link juice to index.php, but you may run into relevance issues.

        isapi_rewrite is a little complicated in terms of it's syntax rules, but they've got a pretty useful forum. additionally, sometimes website hosts have a pro that can help you if you can't figure it out.

        hope that's of some help! :>)

        dan

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

          also, keep in mind that if you are ranking on secondary terms on the non-front pages, you will lose a lot of that relevance by forwarding to only your home page (esp. if it's not about that specific thing.

          example:
          old site about fruit  on home page - old subpage about apples

          the old subpage about apples may rank really well
          next, you  forward the old subpage about apples to your new front page
          the search engines go "oh, this page isn't as relevant as the old apples subpage that no longer exists, let's bump down the rankings"

          hence, it's always best to forward your equivalent old content to your equivalent new content.

          1 Reply Last reply Reply Quote 0
          • 1 / 1
          • First post
            Last post
          • 301 redirects - one overall redirect or an individual one for each page url
            Kurt_Steinbrueck
            Kurt_Steinbrueck
            1
            4
            160

          • I've consolidated other domains to a single one with 301 redirects, yet the new domain authority in MOZ is much less that the redirected ones. Is that right?
            MashBonigala
            MashBonigala
            2
            3
            232

          • 301 redirect all 404 pages
            alsvik
            alsvik
            0
            8
            3.6k

          • How to know what pages are 301 redirecting to me?
            riyas_
            riyas_
            0
            2
            208

          • How does this rank? - a page that is 301 redirected
            Morris77
            Morris77
            0
            5
            279

          • How to verify a page-by-page level 301 redirect was done correctly?
            EvolveCreative
            EvolveCreative
            0
            5
            269

          • I know I'm missing pages with my page level 301 re-directs. What can I do?
            Dr-Pete
            Dr-Pete
            0
            4
            214

          • 301 Single Page Redirects in IIS7?
            Bandicoot
            Bandicoot
            0
            3
            2.7k

          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