Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member
    Join Date
    Mar 2010
    Posts
    9

    Default Anyway to make cpanel/whm create redirect for all sites

    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 :
    http://www."domain".co.uk and http://"domain".co.uk should resolve to the same URL, but currently do not
    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. #2
    Member JoshDylan's Avatar
    Join Date
    Apr 2011
    Location
    Michigan
    Posts
    163
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Anyway to make cpanel/whm create redirect for all sites

    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.

Similar Threads & Tags
Similar threads

  1. Elegant way to make webmail auto-redirect to SSL
    By dandadude in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 11-23-2011, 03:08 PM
  2. Make apache redirect ip address to domain
    By eggbert in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-11-2011, 12:37 PM
  3. SHTML Redirect Not Working on Some Sites w/IE7
    By netmation in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-10-2009, 09:56 AM
  4. Can I make a backup of each sites except one site
    By qwe010 in forum Data Protection
    Replies: 1
    Last Post: 12-24-2007, 11:52 AM
  5. How I make secure pages in my sites ?
    By aitn in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 04-08-2002, 03:54 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube