htaccess redirect without changing URL

Discussion in 'Apache' started by mrconstantine, Jul 1, 2006.

  1. #1
    Hi everyone, I have www.mywebsite.com, and I want to have www.mywebsite.com/test redirect to https://server1.adifferentwebsite.com/~myaccount/ where this website link is a different ip address but is my account so i can use Shared SSL but i want it so that it doesnt show the long address bar i just want it to show www.mywebsite.com/test is this possible using some .htaccess modifications? I managed to do it with htaccess but the URL changes to https://server1.adifferentwebsite.com/~myaccount/, I want it to stay as www.mywebsite.com/test. Any ideas?

    Cheers
     
    mrconstantine, Jul 1, 2006 IP
  2. Jean-Luc

    Jean-Luc Peon

    Messages:
    601
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    0
    #2
    IMO, you cannot do that with .htaccess.

    Maybe you could try to put the https page in a frame within the http page.

    Jean-Luc
     
    Jean-Luc, Jul 1, 2006 IP