I need some guidance on configuring a FortiWeb URL rewrite rule. I have URLs like this: 'https://example.com/placeholder/123,' where the end part, '/123,' can be any numeric value. My goal is to create a FortiWeb URL rewrite rule that captures this variable part of the URL and carries it over to the new rewritten URL.
Could someone kindly provide step-by-step instructions on how to set up such a rule in FortiWeb? I understand that I may need to use regular expressions and backreferences, but I'm relatively new to FortiWeb, and any assistance you can provide would be greatly appreciated!
Hi @Ragman
May be the attached expression may help you. I haven't tested it but you may try it yourself to see if it works.
It matches "path/placeholder/Remaining URL" and then replace with "path/newplaceholder/Remaining URL". You can validate the Regex from the FortiWeb before apply the URL rewrite your VS Server policy.
Some reference here:
Let me know your thoughts and if any additional questions you may have.
Best Regards,
User | Count |
---|---|
1922 | |
1144 | |
769 | |
447 | |
277 |
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.