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.

Anyway to make cpanel/whm create redirect for all sites

Discussion in 'General Discussion' started by southcoastweb, Jan 26, 2012.

  1. southcoastweb

    southcoastweb Member

    Joined:
    Mar 30, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    Hi everyone, I have googled this for about an hour now and cannot find the answer anywhere ..

    I keep running SEO reports on a few of my sites hosted on my VPS for clients.
    I always get an error :
    which apparently is bad for Google.

    Now i found a .htaccess fix :
    Code:
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^domain.co.uk
    RewriteRule (.*) http://www.domain.co.uk/$1 [R=301,L]
    
    but now I have to add .htaccess to over 100 sites.
    I have looked through all the options in WHM to make this automatic and I cannot find the option.
    Im sure its there though..

    can anyone help ?

    Thanks in Advance...
     
  2. JayFromEpic

    JayFromEpic Well-Known Member

    Joined:
    Apr 2, 2011
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Scottsdale, AZ
    cPanel Access Level:
    Root Administrator
    Your best bet is to do this manually unless you know a bit of Perl. If you know Perl, you can easily write a script to do this to all websites on your vps server.
     
Loading...

Share This Page