Htaccess address bar redirect

Discussion in 'Apache' started by AbdullahFarouk, Feb 17, 2011.

  1. #1
    I was wondering if there was a way using htaccess to redirect users to another domain while re-writing the address in the browser's address bar?

    example: say I have "maindomain.com" and also own "otherdomain.com", and I want it so that when someone enters "otherdomain.com" to be redicted to actually be viewing "maindomain.com", but make it appear to them that they are at "otherdomain.com" according to their browser's address bar.
     
    AbdullahFarouk, Feb 17, 2011 IP
  2. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #2
    Use frames, it is not possible with .htaccess AFAIK.
     
    mwasif, Feb 18, 2011 IP