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!

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:
    51
    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

  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