| Description | This article describes the steps to use the rewrite rule in FortiWeb to redirect root directory URL to subdirectory URL. |
| Scope | FortiWeb. |
| Solution |
Prerequisites:
There are cases where a landing page which initially places at the root directory of a domain website, and users wish to migrate to a sub-directory of the domain website. Using the URL Rewrite rule, redirect the HTTP request from the root directory to the sub-directory URL.
Object: HTTP Host Regular Expression: (.*) *Regular expression to match HTTP requests with any hostname.
Object: HTTP URL Regular Expression: ^/$ *Regular expression to match HTTP requests URL of root directory only.
Related document: |
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.
Copyright 2025 Fortinet, Inc. All Rights Reserved.