.htaccess: forward to url but keep current url -


i'm trying forward url1 (www.currentdomain.com/folder/) url2 (www.otherdomain.com). don't want change url in addressbar. (i want show www.currentdomain.com/folder/

i've tried couple of things , got forward. changes url1 url2 tough:

rewriteengine on options +followsymlinks rewritecond %{request_uri} ^/url1 rewriterule ^(.*)$ url2 [l]  

url2 not descriptive. but, if url2 not local , anotherdomain.com , not uri, redirect. can't internal redirect domain.

you have use mod_proxy , [p] flag on rewriterule.

http://httpd.apache.org/docs/2.2/rewrite/proxy.html


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -