The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Google Duplicate Content Penalty and wwwact

Discussion in 'General Discussion' started by anup123, Dec 3, 2005.

  1. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Hello,

    While new accounts are setup, how to ensure the following in httpd.conf (non ssl) for each domain added:

    RewriteEngine On

    RewriteCond %{SERVER_PORT} !=443
    RewriteCond %{HTTP_HOST} !^www.domain\.tld
    RewriteRule (.*) http://www.domain.tld/$1 [R=301,L]

    This is necessary so that google's duplicate content penalty is ruled out. Yes currently it has to be done manually, but then it should be done by default. which file needs addition/modification?

    If there are any other solutions for this it would be welcome.

    TIA
    Anup
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    You should be able to make the changes that you want for new accounts to:

    /usr/local/cpanel/etc/httptemplates/apache1/default
     
  3. anup123

    anup123 Well-Known Member

    Joined:
    Mar 29, 2004
    Messages:
    897
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    This Planet
    Any impact on "Add On Domains" if the above changes are done? (for all accounts created after the changes)

    Anup
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I would hope that they use the same template, but I haven't tested it.
     
Loading...

Share This Page