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.

WHM/cPanel/Server crashes with .htaccess rewrite rule

Discussion in 'General Discussion' started by pauleycreative, Aug 10, 2011.

  1. pauleycreative

    pauleycreative Registered

    Joined:
    Aug 10, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Hi there, i hope someone out there can help me.

    I have a website with 3 domains parked on top of it. I have the following rules set up in my .htaccess file:

    RewriteCond %{HTTP_HOST} !^www.domain.co.uk$
    RewriteRule (.*) http://www.domain.co.uk/$1 [R=301]

    As soon as i enter the address of one of the parked domains the whole server crashes and every site goes down. As soon as these rules are commented out, server rebooted then the website is fine but now when i go to one of the parked domains the parked domain's address appears in the address bar which is bad for SEO, hence the rewrite rules I am trying to apply.

    I have no clue whatsoever as to why this rule would be taking down the server. Does anyone have any suggestion? Many thanks in advanced.

    Duncan
     
Loading...

Share This Page