fusionbird — 2011-08-04T08:13:20-04:00 — #1
Urgent help needed.
I have 2 servers ,
server A with IP address 220.127.116.11 and server B with IP address 18.104.22.168
Users can upload files to server A and server B.
Suppose if a person comes to server A and request a file in Server B , my script redirects him to server B and help him with the file download.
But it shows in browser that 22.214.171.124/~username/file.php
Am after an htaccess rule that helps me to get the file downloaded from server B even though he comes in server A( hence redirection rule in .htaccess doesn't apply ), but in browser it should display my domain name instead of 126.96.36.199/~username/file.php
Confused ? Else please help.
dklynn — 2011-08-05T00:32:22-04:00 — #2
To access a file via http on a domain, that domain's name (or number) MUST be displayed in the browser's location box. This is a security issue and is, IMHO, correct.
To your problem, no, you can't do it with .htaccess.
You can, however, provide the file via PHP if on the same server (or via fopen() on the Internet).
There's always more than one way to skin a cat!