struggling with htaccess

RewriteEngine On
RewriteRule (.*)$ ht*p://subdomain.anotherserver.com/$1 [R,L]

I'm using this htaccess to forward users from a folder on my server to a subdomain on the external server.

It works fine except for someone enters

w*w.myserver.com/thefolder

I'm on shared hosting and it drags up the folders above mine and sticks them on the end so i get:

ht*p://subdomain.anotherserver.com/u/web/myusername/thefolder/

Any idea what code I could add to my htaccess to handle these requests?

thanks in advance for any help.

 

 

 

 

Top