Yet another problem with .htaccess redirect

Discussion in 'Apache' started by Pzi, Aug 29, 2007.

  1. #1
    My homepages are on my internet operators (I suppose it's the same as ISP) free homepage space and I have registered my domain from another party, because the ISP's prices are so high. I have tried to make a redirect for my pages so that if you would go for instance to the address www.domain.com/pictures it would redirect to www.operatorsname.com/myname/pictures without the url changing on the addressbar. I have managed to get the redirect to work, but the address just keeps changing in the addressbar whatever I try to do.

    Do you have any suggestions?

    P.S my .htaccess looks like following, it's situated on the server with the address www.domain.com:

    
    RewriteEngine On
    RewriteRule ^(.*)$ http://www.operatorsname.com/myname/$1
    
    Code (markup):
    I think this isn't the best possible solution, so if you could help me please.
     
    Pzi, Aug 29, 2007 IP
  2. cbn81

    cbn81 Peon

    Messages:
    160
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Did you make the redirect through htaccess or in some other way (301 perhaps?)
     
    cbn81, Aug 29, 2007 IP
  3. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #3
    All you can do is redirect to the operatorsname URL with the location being the operatorsname. If you could redirect and have the URL stay at domain.com, any one would be able to make it look like they owned any web site.
     
    Nintendo, Aug 29, 2007 IP