Forum Moderators: phranque
i.e.
mydomain.com/directory/ should point to server newservername/directory but the file will still show mydomain.com/directory/file.htm in the browser?
Sop i have the ability to switch where the directory loads from without constantly changing the url.
Downsides:
You can set up the proxy in httpd,conf, or use a mod_rewrite RewriteRule with the [P] flag.
Jim
In the example where main server is using domain.com..and www.domain.com/directory is being redirected to server_name/directory..how would i use htaccess to have server_name/directory/file.html show as www.domain/directory/file.html
Im really one grain short of newbie with regards to htaccess so sorry if im not understanding what should be obvious.
In this case you want to serve the URL www.domain/directory/file.html from the file at www.anotherdomain/directory/file.html, or so I presume.
In that case, leaving out all of the setup directives, you'd use
RewriteRule ^directory/file\.html$ http://www.anotherdomain.com [P]
In this case, www.domain.com acts as a proxy to reach the specific content on www.anotherdomain.com.
Jim
! :(