Parked Domain Redirect Problem: Subpages Won't Redirect!

by 8 replies
10
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)?
#website design #domain #parked #problem #redirect #subpages
  • Could you please show me the htaccess ? Thanks
    • [1] reply
    • 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]
  • 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
    • [ 1 ] Thanks
    • [1] reply
    • Cool, thanks Mike, I'll try that!
  • $5,00, man
  • 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
  • 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]

Next Topics on Trending Feed

  • 10

    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.