Main and parked domains in Cpanel

Discussion in 'Search Engine Optimization' started by Talker, Mar 7, 2008.

  1. #1
    Hi,

    I am a bit confused with main and parked domains as well as how google witll spider them.

    I have 2 domains...

    1.mydomain.com
    2.ourdomain.com


    The mydomain.com is the actual hosted domain having the website and stuff.
    ourdomain.com is a parked domain within the mydomain.com cpanel account and when browsed, shows the mydomain.com website.

    My question is, how would ourdomain.com be spidered by google and other search engines.. Will it be healthy and will a PR be assigned to the ourdomain.com domain?
     
    Talker, Mar 7, 2008 IP
  2. AgentD

    AgentD Peon

    Messages:
    131
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You're going to want to to a 301 redirect from ourdomain.com to mydomain.com. The way you have it Google is going to see it as duplicate content.

    If you do a 301, the PR of ourdomain.com will pass on to mydomain.com.
     
    AgentD, Mar 7, 2008 IP
  3. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #3
    Thanks..

    Can you tell me how to do a 301 redirect?
    Do i need to create a new cpanel account and host the ourdomain.com there?
     
    Talker, Mar 7, 2008 IP
  4. AgentD

    AgentD Peon

    Messages:
    131
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #4
    It's easy. Park ourdomain.com on the mydomain.com account (this is done in cpanel). Then you'll want to update your .htaccess file (a file at the root level). If you don't see an .htaccess file then create one (it's named just ".htaccess", there's nothing before the period). If you're using a CMS you'll want to seek support through the CMS creator because they often have an .htaccess file.

    So, put the following in the .htaccess file (replacing your domain):

    RewriteEngine on
    
    rewriteCond %{HTTP_HOST} ^(www\.)?ourdomain\.com$ [NC]
    rewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L] 
    Code (markup):
    That's it.
     
    AgentD, Mar 8, 2008 IP
    Talker likes this.
  5. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #5


    Thanks a lot. I put that code in and now it redirects to mydomain.com whenever i type ourdomain.com

    Talker.
     
    Talker, Mar 10, 2008 IP
  6. AgentD

    AgentD Peon

    Messages:
    131
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Cool, that's what it's supposed to do :)
     
    AgentD, Mar 10, 2008 IP
  7. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #7
    What do you think i should add so that when i type http it should go to https
    Thats on mydomain.com.
     
    Talker, Mar 10, 2008 IP
  8. AgentD

    AgentD Peon

    Messages:
    131
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I've never tried that. Try just adding an "s" to the destination:

    RewriteEngine on
    
    rewriteCond %{HTTP_HOST} ^(www\.)?ourdomain\.com$ [NC]
    rewriteRule ^(.*)$ https://www.mydomain.com/$1 [R=301,L]/
    Code (markup):
     
    AgentD, Mar 10, 2008 IP
  9. trichnosis

    trichnosis Prominent Member

    Messages:
    13,785
    Likes Received:
    333
    Best Answers:
    0
    Trophy Points:
    300
    #9
    if you write your domain, it will be easy to make comment
     
    trichnosis, Mar 10, 2008 IP
  10. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #10
    I am already using that. It does redirect http://www.ourdomain.com to https://www.mydomain.com, but it does not work for
    http://www.mydomain.com to https://www.mydomain.com


    I'm sorry, but i don't want to disclose the domain on this thread. Its a normal practice to hide domains the way i did. I hope you can help me with my small issue.
     
    Talker, Mar 11, 2008 IP
  11. kulinar

    kulinar Member

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    43
    #11
    Try this
    RewriteEngine On
    RewriteCond %{SERVER_PORT} !^443$
    RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [L,R]
    Code (markup):
     
    kulinar, Mar 11, 2008 IP
  12. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #12
    Tried that.. doesn't seem to work.

    But this piece of code worked.

    
    RewriteEngine On 
    RewriteCond %{SERVER_PORT} 80 
    RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
    
    Code (markup):
    Thanks to everyone on this thread who helped me.
     
    Talker, Mar 11, 2008 IP
  13. dpking

    dpking Peon

    Messages:
    1,021
    Likes Received:
    16
    Best Answers:
    0
    Trophy Points:
    0
    #13
    umm ... 301 redirect check this article SEO Redirect this will help in understanding !!
     
    dpking, Mar 11, 2008 IP