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. Parked Domain blog directory not redirecting

    Parked Domain blog directory not redirecting

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

      My newly parked domain name, (our main website had to switch primary domains) is not redirecting properly and is causing our blog to be duplicate content. My 301 redirects work for everything else, but our parked domain /blog directory is not redirecting. I can type in both urls and then the blog appears on both sites. Not good.

      If I delete my blog .htaccess file, then it redirects fine. However, then our blog links are broken. So it has to do something with our .htaccess files. I do have a .htaccess file for our website, saying redirect everything to correct location, so i think this is interfering, but I cannot pinpoint it.

      this is the .htaccess file for the blog.

      BEGIN WordPress

      <ifmodule mod_rewrite.c="">RewriteEngine On
      RewriteBase /blog/
      RewriteRule ^index.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /blog/index.php [L]</ifmodule>

      END WordPress

      main sites .htaccess (i am trying to pinpoint the issue here)

      Options +Includes
      AddType text/html .htm .html
      AddHandler server-parsed .htm .html
      Options +FollowSymLinks

      RewriteEngine on

      RewriteBase /

      RewriteCond %{HTTP_HOST} ^(www.)?parkeddomain.com [NC,OR]

      RewriteCond %{HTTP_HOST} ^newdomain.com [NC]

      RewriteRule (.*) http://www.newdomain/$1 [R=301,L]

      RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^?]*)?

      RewriteRule (.*) /$1? [R=301,L]

      RewriteCond %{THE_REQUEST} ^.*/index.php

      RewriteRule ^(.*)index.php$ http://www.newdomain.com/$1 [R=301,L]

      RewriteCond %{THE_REQUEST} ^.*/index.htm

      RewriteRule ^(.*)index.htm$ http://www.newdomain/$1 [R=301,L]

      RedirectMatch 301 /index.php/(.*) /$1

      Is there something obvious here, that does not look right?

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

        I'm not good with writing htaccess code, but just thought I would mention that if you don't get an answer, another solution would be to use a rel-canonical tag in the header, pointing to the domain you want indexed.  This would tell the search engines that the non-parked domain is the proper one to index.  The other one should drop out of the index after you do this.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        • Redirect multiple domains to 1 domain or not?
          Njnbiure45r4
          Njnbiure45r4
          0
          6
          377

        • I have a blog on a sub domain, would you move it to the rood domain in a directory?
          LesleyPaone
          LesleyPaone
          0
          7
          164

        • 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

        • Domain hacked and redirected to another domain
          Dantek
          Dantek
          0
          4
          119

        • Blog.domain.co.uk or domain.co.uk/blog
          eyepaq
          eyepaq
          0
          4
          279

        • To 301 redirect or not to 301 redirect? duplicate content problem www.domain.com and www.domain.com/en/
          Chris-CA
          Chris-CA
          0
          5
          456

        • Can I do a redirect to a new domain name only a couple of weeks after having redirected to another domain?
          Francisco_Meza
          Francisco_Meza
          0
          4
          428

        • 301 Redirect Domain or 301 Redirect Domain + Interior Pages
          Room214
          Room214
          0
          7
          1.1k

        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