htaccess redirect
I've been battling this one for ages now and have hunted high and low across a lot of forums for the answer - not even sure its possible.Basically, I need visitors to be able to enter
://w3.domain1.com/folder/any_file_of_any_type
and be shown
://subdomain.domain2.com/any_file_of_any_type
but without the domain2 url being shown in the address bar.
I'm using shared hosting and there's no sign of a .htaccess file in my root directory - however, I can't risk putting the whole site out of action if I inadvertently overwrite the root .htaccess.
So, I've tried the following htaccess in the folder that I want to redirect:
RewriteEngine on
RedirectPermanent / ://subdomain.domain2.com/ [L]
Unfortuatenly, that only achieves redirecting as follows:
://w3.domain1.com/folder/any_file_of_any_type
to
://subdomain.domain2.com/folder/any_file_of_any_type
Any idea what's going wrong and how I can get around it? Any help very much appreciated
Thanks very much,
Ben
P.S. please ignore the odd urls - it won't let me post a fake one.