Results 1 to 2 of 2
Thread: Htaccess help needed
Aug 4, 2011, 05:13 #1
- Join Date
- Mar 2007
- 0 Post(s)
- 0 Thread(s)
Htaccess help needed
Urgent help needed.
I have 2 servers ,
server A with IP address 18.104.22.168 and server B with IP address 22.214.171.124
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 126.96.36.199/~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 188.8.131.52/~username/file.php
Confused ? Else please help.
Aug 4, 2011, 21:32 #2
- Join Date
- Feb 2002
- 19 Post(s)
- 2 Thread(s)
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!