Forum Discussion

KrisP_153379's avatar
KrisP_153379
Icon for Nimbostratus rankNimbostratus
May 15, 2014

How to change https://lalala to https://lalala/somethingelse/file.aspx

Hello, I would like to ask about something. I have successfully configured a VIP on F5 for http (http://lalala) and redirect the traffic to https (https://lalala/somethingelse/file.aspx). But I have problem because when users are going in web browser directly to https://lalala/ they are not going directly to https://lalala/somethingelse/file.aspx. So the question is how to make such change of URI (?) for https via iRule? Or is it possible?

 

1 Reply

  • There are a couple of ways to do it depending on what you want the users to see, if you don't mind them seeing the true IP I would suggest doing a simple 302 redirect using an iRule, similar to the below:

     

    when HTTP_REQUEST { if { [HTTP::uri] equals "/" }{ HTTP::redirect "https://[HTTP::host]/somethingelse/file.aspx" } }