Forum Discussion
Working without trailing slash in LTM rewrite profile URI rules
Hi,
in HTTP, https://main.example.com/dd and https://main.example.com/dd/ are not the same and must not be handled with same behavior.
- https://main.example.com/dd is a file
- https://main.example.com/dd/ is a directory
If you rewrite https://main.example.com/dd to https://bar.example.com/dd/ and there is a relative link like a href=logo.png with real path https://bar.example.com/dd/logo.png, the client will request https://bar.example.com/logo.png because of this rewrite.
If you want https://main.example.com/dd to be rewritten to https://bar.example.com/dd/, the best solution is to add a policy rule which redirect /dd to /dd/. it will next match the rewrite rule.
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com