Skip to main content
Heyro
New Member
January 14, 2017
Question

URL REWRITE

  • January 14, 2017
  • 1 reply
  • 8306 views
Dear fortiweb users, We've just purchased a fortiweb to host our services. I've noticed that fortiweb is able to rewrite url. So right now we're hosting a url [link]http://domain.com:8085/oracle/f?p=13[/link] and would like to change it to [link]http://domain.com:8085/report.[/link] Is this possible and how can this be done? Meaning a client should type in the rewrited url in order to reach the site.

    1 reply

    max_monterumisi
    New Member
    March 16, 2017

    I guess in Application Delivery, create Rewriting_Rule with Request Action 301 and two subrule.

    First subrule use Object "HTTP Host" and take the FQDN request (for example (.*)) and memorize value in $0

    (Try if works with :8085...I don't know)

    Second subrule use Object "HTTP URL" and take what you want after the first / (for example ^/(oracle/\w\?\w=\d*)$ and memorize value in $1

    Then in Location you can set https://$0/report

     

    Last create Rewriting_Policy within you Rewriting_Rule and assign it at your customize Inline Protection Profile

    Heyro
    HeyroAuthor
    New Member
    October 28, 2017

    I will try this Max. Thanks for the response