Redirecting subdomain to main domain keeping subdomain URL

Discussion in 'Apache' started by bom, Nov 15, 2010.

  1. #1
    Hello! I've been trying to redirect the domain www.thatbabyshop.co.uk to www.thatbaby.yourcheckout.co.uk , but keeping the thatbabyshop.co.uk as the URL that the customer sees.

    My file directory is as follows:
    -> public_html
    -> catalog
    -> index.php
    -> thatbabyshop.co.uk
    -> stokke.jpg
    -> .htaccess

    When I type www.thatbabyshop.co.uk/stokke.jpg the link works, and if I type www.thatbabyshop.yourcheckout.co.uk/stokke.jpg.

    I've been putting mod_rewrite code in the .htaccess file in the thatbabyshop.co.uk folder, but can't seem to achieve what I want.

    Any help would be much appreciated!
     
    bom, Nov 15, 2010 IP
  2. aksrocks69

    aksrocks69 Guest

    Messages:
    115
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    you can redirect it via cpanel redirect one
    by that you can redirect it to subdomain
     
    aksrocks69, Nov 15, 2010 IP
  3. bom

    bom Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i have tried redirecting using cpanel, but can't seem to keep the original URL. Is it possible to achieve that?
     
    bom, Nov 15, 2010 IP