|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Hello !!!
There are several modes to redirect to files stored on a remote host, ok ??? Ok, I'm use this php code to do it: header("Location: http://www.remoteserver.com/myaccount/"); The problem is when I have a subdirectory of myaccount on remote server eg: myaccount/test/ and try to access the url http://www.mydomain.com/test/ the directory doesn't exists on my server and nothing will be showed .... did you understand me ??? I want to maintain my domain name (eg: http://www.mydomain.com) using remote directories and subdirectories with it ... (eg: http://www.mydomain.com/test/ ...assuming test as a remote directory). Any ideas to solve this ??? Kindest Regards, Marco Aurélio Brazil btw, sorry for my english ... |
|
#2
|
|||
|
|||
|
RewriteEngine on
RewriteRule ^/(.*) http://www.remoteserver.com/myaccount/$1 [R,L] Example: http://www.mydomain.com/test/ to http://www.remoteserver.com/myaccount/test/ http://www.mydomain.com/test/123/blah.html to http://www.remoteserver.com/myaccou...t/123/blah.html The http://www.mydomain.com/test/123/blah.html file itself can be nonexistence. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > External redirection ... |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|