Forum Discussion

hoangtoon_29588's avatar
hoangtoon_29588
Icon for Nimbostratus rankNimbostratus
Jul 26, 2018

F5 URL redirect without changing the URL

Hi guys, Newbie here with F5. I want to set up a redirect a site but want to keep the same URL of the site. For example if I go to: http://site1.com/subsite1 it will redirect content to: http://site2.com/subsite2 but I want the URL still stay the same on users' browsers http://site1.com/subsite1 and the content is from http://site2.com/subsite2 As another word, on user's browser, the URL still shows http://site1.com/subsite1, but the content is from http://site2.com/subsite2

 

is it possible? I did some researching, seems like what i'm looking for is a Reverse Proxy Redirect? I'm not so sure. Could you help me to create this rule? Thank you so much in advance

 

Hoang

 

3 Replies

  • Hello Hoang,

     

    It is very possible, although it can cause weird issues depending on how the backend application is coded. Your best bet is to look into rewrite profiles to rewrite incoming URLs (from the HTTP request header) as well as reponses sent back to clients (HTTP response header, HTML code, Java scripts, etc).