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.
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.
2) Using the Content Rewriting feature.
Create a Content Rewriting profile
Call the Content Rewriting profile in the Virtual Server configured for the HTTP service.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.