Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    51
    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:
    212
    Likes Received:
    4
    Trophy Points:
    68
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice