Learn F5 Technologies, Get Answers & Share Community Solutions Join DevCentral

Filter by:
  • Solution
  • Technology
Answers

Redirection irule for https and Rewrite issue

I need help for an irule or a policy,

domain is def.local rewrite there should be rewrite such as /test-web or /Test/?locale=tr redirection only /test-web/updater will work on http all other abc.def.local request should be (https//abc.def.local/test-web) and /test-web should be rewrite end of the url

for example when clients go to the aa.def.local there should be redirection and rewrite such as

(aaa.def.local/hbys-web/updater) (bbb.def.local/hbys-web) (ccc.def.local/AkRIS/locale-tr)

0
Rate this Question
Comments on this Question
Comment made 13-Aug-2018 by mplaksin 169

There is a factory redirect irule with F5 Appliance, the name is:_sys_https_redirect The irule redirect http request to https, you have to use it on http virtual server.

For the URL modification take a look in https://devcentral.f5.com/wiki/iRules.HTTP__uri.ashx

0
Comment made 13-Aug-2018 by yukselkarapinar 10

Hi, thank you for your response, this work only for redirection http to https. I m trying to make rewrite and redirection at the same time.

0

Answers to this Question

placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

Your question seems a bit vague. If a client makes a request to aa.def.local, which address should the request be redirected to ?

0
Comments on this Answer
Comment made 13-Aug-2018 by yukselkarapinar 10

Hello, Thank you for your response

Let me explain the issue again;

there are 2 VS, one of is http otherone is https. only the aa.def.local/Test/?locale=tr will work http and all oher request will be https

http://aa.def.local/Test/?locale=tr https://aa.def.local/test-web

Also, It will automaticly complete /test-web when client enter aa.def.local on the browser.

aa.def.local/Test/?locale=tr this is using by developers and it only work http.

0
placeholder+image
USER ACCEPTED ANSWER & F5 ACCEPTED ANSWER

There is a factory redirect irule with F5 Appliance, the name is:_sys_https_redirect The irule redirect http request to https, you have to use it on http virtual server.

For the URL modification take a look in https://devcentral.f5.com/wiki/iRules.HTTP__uri.ashx

Edit your comment

0