Forum Discussion
URI masking
Hey Guys,
I am new to all this so bare with me. I have two applications that have web hooks into each other. We had to upgrade one of them and it changed the directory structure which is now breaking the web hooks. I am trying to mask the beginning of the uri so to the client making the call it looks the same, but on the backend it sends to new directory.
I need http://mysite.com/code to redirect to http://mysite.com/newdir/code, but without the browser displaying the redirect. To the client it still needs to look like http://mysite.com/code. Additionally, as the client drills down further into the application I need it to continue masking /newdir/ in the browser.
1 Reply
Hi Heather,
You can try using a rewrite profile for this to change the URI on the back-end without changing the URI in the client's web browser
tmsh create ltm profile rewrite REWRITE rewrite-mode uri-translation uri-rules add { mysite.com { type request client { scheme http host mysite.com path /code/ } server { path /newdir/code/ } } } tmsh modify ltm virtual profiles add { REWRITE }Note: You will need to make sure that there is an HTTP profile applied to the virtual server
Let me know if this works for you
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
