I've googled this and found a few examples, all of which are the same and work for the people that are trying them (but they don't have cPanel). I've tried it and it doesn't work!
RewriteCond %{HTTP_HOST} ^mydomain\.co\.uk$ [NC]
RewriteRule .* http://www.mydomain.co.uk/ [L,R=301]
Adding this to the httpd.conf file either inside the specific VirtualHost directive or at the bottom of the file, or even inside the site's htaccess file; it doesn't work!
Can anyone help?
Surely this should be a feature of cPanel too? Although I've tried to do this using cPanel's redirect function, but I get an error (see http://bugzilla.cpanel.net/show_bug.cgi?id=6250).
Thanks in advance!



LinkBack URL
About LinkBacks
Reply With Quote





