Parked Domain Redirect Problem: Subpages Won't Redirect!

8 replies
  • WEB DESIGN
  • |
So I created several landing pages for my client and put them on their website, www. micpa.com. Most all of them ranked quickly, but I noticed a few pages weren't within the top 100 results, and I discovered that Google had indexed the parked domain for these subpages instead of their main domain that I track.

Their parked domain is www. mcclureinserra.com.
Example: Google had indexed www. mcclureinserra.com/cpa-firm-accounting-south-barrington-inverness-il

instead of www. micpa.com/cpa-firm-accounting-south-barrington-inverness-il, which is the domain I do all the SEO for.

I thought it'd be an easy fix, I'd just 301 redirect the parked domain to the main one and that'd be that.

So I set up the redirect in cpanel for www. mcclureinserra.com to go to www. micpa.com, which it now does. But the subpages DO NOT redirect even though I set up a 301 redirect within cpanel (I did not manually edit the .htaccess file).

Anyone have an idea why the subpages for the parked domain would not be redirecting even though I've set up a 301 redirect for the domain (which works) and for the subpage specifically (which doesn't seem to do anything)?
#domain #parked #problem #redirect #subpages
  • Profile picture of the author Michael71
    Could you please show me the htaccess ? Thanks
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[7736335].message }}
    • Profile picture of the author ringer37
      Sure, here it is:

      Code:
      RewriteOptions inherit
      
      # BEGIN WordPress
      <IfModule mod_rewrite.c>
      RewriteEngine On
      RewriteBase /
      RewriteRule ^index.php$ - [L]
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule . /index.php [L]
      </IfModule>
      
      # END WordPress
      
      Redirect 301 /business_helps.htm http://www.micpa.com/info-center#usefullinks
      Redirect 301 /15.htm http://www.micpa.com/info-center#usefullinks
      Redirect 301 /26.htm http://www.micpa.com/tax-services-cpa-chicago
      
      RewriteCond %{HTTP_HOST} ^www.mcclureinserra.com$ [OR]
      RewriteCond %{HTTP_HOST} ^www.www.mcclureinserra.com$
      RewriteRule ^/?$ "http://www.micpa.com" [R=301,L]
      
      RewriteCond %{HTTP_HOST} ^www.mcclureinserra.com$ [OR]
      RewriteCond %{HTTP_HOST} ^www.www.mcclureinserra.com$
      RewriteRule ^cpa-firm-accounting-south-barrington-inverness-il/?$ "http://www.micpa.com/cpa-firm-accounting-south-barrington-inverness-il" [R=301,L]
      {{ DiscussionBoard.errors[7736430].message }}
  • Profile picture of the author Michael71
    I would use something like this if you want to route everything from olddomain to newdomain (same folder/name/file-structure ofcourse):

    Code:
    Options +FollowSymLinks
    RewriteEngine on
    #
    RewriteCond %{HTTP_HOST} !^www.newdomain.com
    RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]
    Read more here:

    .htaccess / 301 redirect an entire site to new domain Apache Web Server forum at WebmasterWorld
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[7736553].message }}
  • Profile picture of the author Michael71
    $5,00, man
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[7736656].message }}
  • Profile picture of the author ringer37
    Hey Mike, I put the code you suggested into the .htaccess, but that hasn't fixed the problem. mcclureinserra.com redirects to micpa.com, but subpages don't redirect. example:
    http://www. mcclureinserra.com/cpa-firm-accounting-south-barrington-inverness-il
    {{ DiscussionBoard.errors[7737187].message }}
  • Profile picture of the author Michael71
    Signature

    HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
    ---
    Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

    {{ DiscussionBoard.errors[7737233].message }}
  • Profile picture of the author ringer37
    After a long time of googling (seems a lot of people have this same problem, but no one's solution was actually working), I found this and it works! so for the reference of those who may come across this page later...

    Code:
    Options +FollowSymlinks -MultiViews
    RewriteEngine on
    
    # handles domain2/* -> domain1/* for http
    RewriteCond %{HTTP_HOST} ^(www.)?domain2.com$ [NC]
    RewriteCond %{SERVER_PORT} =80
    RewriteRule ^(.*)$ http://domain1.com/$1 [R=301,L]
    
    # handles domain2/* -> domain1/* for https
    RewriteCond %{HTTP_HOST} ^(www.)?domain2.com$ [NC]
    RewriteCond %{SERVER_PORT} =443
    RewriteRule ^(.*)$ https://domain1.com/$1 [R=301,L]
    {{ DiscussionBoard.errors[7739231].message }}

Trending Topics