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

FortiADC redirect/rewrite to URL with portnumber

NOOB question alert ;)

I want to make a redirect/rewrite to an URL with an portnumber other than 80 or 443, for example https://newpage.com:8080. If I make a redirect or rewrite the FortiADC doesn't do anything with this portnumber. Cannot find an answer or example in the FortiADC manual.

Probably solvable with a regular expression, if so an example would be great.

2 REPLIES 2
ddsouza_FTNT
Staff
Staff

As I understand, you want FADC to redirect HTTP requests containing the URL 'http://newpage.com' received from clients to 'https://newpage.com:8080'. Please correct me if I am wrong. If my understanding is correct, then there are two ways to achieve your requirement

 

1) Using the 'HTTP Redirect to HTTPS' option in the Virtual Server configured for HTTPS service.

ddsouza_FTNT_0-1637243690638.png

  • Test Results

ddsouza_FTNT_1-1637244024956.png

 

OR

 

2) Using the Content Rewriting feature.

  • Create a Content Rewriting profile

ddsouza_FTNT_2-1637244539524.png

  • Call the Content Rewriting profile in the Virtual Server configured for the HTTP service.

ddsouza_FTNT_3-1637244647705.png

  • Test Results

ddsouza_FTNT_4-1637244733410.png

 

If you want the request containing  http://newpage.com to be translated to https://newpgae.com:8080 while forwarding to the real server, please let me know. I can add some examples in this thread.

BJBee

Thanks, we will try both solutions and will let you know which one works best.

Labels
Top Kudoed Authors