Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Heyro
New Contributor

URL REWRITE

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.
2 REPLIES 2
max_monterumisi
New Contributor

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

I will try this Max. Thanks for the response

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors