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.

problems with an htaccess

Discussion in 'General Discussion' started by isdoo, Feb 20, 2012.

  1. isdoo

    isdoo Active Member

    Joined:
    Mar 25, 2011
    Messages:
    32
    Likes Received:
    0
    Trophy Points:
    6
    trying to redirect some URL's in an htaccess file

    Code:
    RewriteEngine on
    Options +FollowSymLinks
    
    RewriteCond %{HTTP_HOST} ^www.old-domain.org.uk$ [OR]
    RewriteCond %{HTTP_HOST} ^old-domain.org.uk$ [OR]
    RewriteCond %{HTTP_HOST} ^www.olddomain.org.uk$ [OR]
    RewriteCond %{HTTP_HOST} ^olddomain.org.uk$
    RewriteRule (.*)$ http://www.newdomain.co.uk/$1 [R=301,L]
    I have these showing as parked domains under cpanel as well - is this correct?

    Essentially if you go to olddomain.org.uk/path/here you go simply to newdomain.org.uk and not to newdomain.org.uk/path/here

    What am I doing wrong?

    Thanks.
     
Loading...

Share This Page