Forum Discussion
Rewrite an HTTP request
I'm not very good with this but based on what you wrote, this is what I did: 1. Profiles/Services/Rewrite 2. Click "Create New Profile". Entered a name, chose /Common/rewrite-uri-translation for the "Patent Profile" and set "Uri Translation" for the "Rewrite Mode" 3. Under "URI Translation/Settings/Request Settings", "Rewrite Headers" and "Insert X-Forwarded-For Header" are checked. 4. Under "URI Translation/Settings/Response Settings", "Rewrite Headers" and "Rewrite Content" are checked. 5. Under "URI Rules", I clicked "Add" and selected "Request" for "Rule Type". Then for the "Client URI", I pasted in "https://webserver.mycompany.com/cp/render.UserLayoutRootNode.uP?uP_tparam=utf&utf=%2fcp%2fip%2flogin%3fsys%3dsctssb%26url%3dhttp://webserver2.mycompany.com/devl/twbkwbis.P_GenMenu?name=bmenu.P_FinInfoMnu". 6. For "Server URI" I pasted in the same string but with the https instead of http.
However, when I click OK to save it, I get the following error:
MCP Error01070734:3: Configuration error: /Common/name_uri_rewrite: Client path '/cp/render.UserLayoutRootNode.uP?uP_tparam=utf&utf=%2fcp%2fip%2flogin%3fsys%3dsctssb%26url%3dhttp://webserver2.mycompany.com/devl/twbkwbis.P_GenMenu?name' must begin and end with '/'
I probably have it misconfigured, but can't tell where the problem is. Any ideas?
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