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. Intermediate & Advanced SEO
    4. How to use modrewrite to redirect certain portions of a site

    How to use modrewrite to redirect certain portions of a site

    Intermediate & Advanced SEO
    1 1 518
    • 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.
    • apo11o177
      apo11o177 last edited by

      Hello!

      My question is as follows:

      Suppose there is SiteA which is a blog that has a url structure of http://www.siteA.com/blog/category/article

      Now suppose I'd like to redirect those articles to a new domain (which has the same url structure) BUT excluding a certain category, say, 'blah/'

      so in other words, some examples:

      http://www.siteA.com/blog/shoes/best-shoes-to-buy ->redirects-> http://www.siteB.com/blog/shoes/best-shoes-to-buy/ (there is a trailing slash here for some reason)

      BUT

      http://www.siteA.com/blog/blah/foo-bar -NO REDIRECT- (because it's in the /blah/ category).

      Any and all feedback & help would be much appreciated 🙂  Thanks!~

      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      • Our new site will be using static site generator which is supposed to be better for SEO?
        0
        1
        26

      • Redirecting an Entire Site to a Page on Another Site?
        photoseo1
        photoseo1
        0
        3
        50

      • What's the best way to use redirects on a massive site consolidation
        0
        1
        18

      • Infinite 302 redirects on a site using Angular JS
        BasKierkels
        BasKierkels
        0
        9
        728

      • Redirecting Pages from site A to site B
        gazzerman1
        gazzerman1
        0
        6
        100

      • What is the Effect of redirect on rankings of two different domains (websites) when site A is redirected to site B?
        GPainter
        GPainter
        0
        4
        154

      • How to use a 301 Redirect when the first 301 Redirect is not the same as what's indexed?
        PatriotOutfitters81
        PatriotOutfitters81
        0
        3
        66

      • What happens when I redirect an entire site to an established page on another site?
        DennisSeymour
        DennisSeymour
        0
        4
        119

      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