Redirect Content to a Different URL While Keeping the Directory or Path
- Last Updated: August 5, 2025
- 1 minute read
- LoadMaster
- LoadMaster GA
- Documentation
Rule type: Modify URL
Match String: /^Directory1(.*)/
Modified URL: /Directory2\1/
Match String: /^Directory1(.*)/
Start Regex: /
Start Match: ^
Regular text: Directory1
Wildcard- capture everything in () and save it as capture group 1: (.*)
End Match: $
End Regex: /
Modify URL String: /Directory2\1/
Start Regex: /
Start Match: ^
Replace with saved data in capture group 1: \1
End Match: $
End Regex: /