.htaccess - Reverse Proxy htaccess -


i need setup reverse proxy on server i.e.

from: http://info.futures.co.uk/info/sitemap.xml

to: http://api.info.futures.co.uk/sitemap.xml

i in ,htaccess. did research on google , found this:

rewriteengine on rewriterule ^index\.html/(http://info.futures.co.uk/info/sitemap.xml)$ $1 [p,l] rewriterule ^index\.html/http://api.info.futures.co.uk/sitemap.xml)$ $1 [p,l] 

firstly dont understand code secondly not work..? there better way or doing mistake here

this proxy info/sitemap.xml http://api.info.futures.co.uk/sitemap.xml, file (images , on not displayed):

rewriteengine on rewriterule ^info/sitemap.xml http://api.info.futures.co.uk/sitemap.xml [p] 

this proxy pages in info http://api.info.futures.co.uk/:

rewriteengine on rewriterule ^info/(.*) http://api.info.futures.co.uk/$1 [p] 

please remember enable mod_proxy , mod_proxy_http in httpd.conf!

use caution!

if http://api.info.futures.co.uk available client suggest not proxy , use redirect instead.


Comments

Popular posts from this blog

java - Plugin org.apache.maven.plugins:maven-install-plugin:2.4 or one of its dependencies could not be resolved -

Round ImageView Android -

How can I utilize Yahoo Weather API in android -