Forum Discussion
Albert__Tase_70
Nimbostratus
Aug 03, 2010adding to a redirect
Hello need some help trying to grab a piece of the uri and append it to the redirect
for example user goes to www.bbb.com wants to get redirect via a 301 to https://bbb.com/yyyy and if t...
Albert__Tase_70
Nimbostratus
Aug 06, 2010ok but how ?
I would have to query the uri comming in and make it a varable quessing here
but then how to add it to the HTTP::respond 301 Location "https://www.example.com/new_uri"
because I need to redirect it to https://www.example.com/xyx no matter what and then add what ever is typed after
the www.example.com to https:/www.example.com/xyx so if the users types www.example.com they get redirected via a 301 to https://www.example2.com/xyx if the users types www.example.com/trackingid=8888 they need to get redirected to https://www.eample2.com/xyx/trackingid=8888 this is so the app server can grep the id what ever it be and log it.
so it would be an if else statement if http::host equals www.example.com
http::respond 301 location "https://www.eaxmple2.com/xyx
else
http::response 301 location "https://www.example2.com/xyx/ whatever comes after the www.example.com
the issue is that the /xyx is a;ready part of ther uri that I need to redirect to which I have to set on the lb then I need to add to it from whatever the user types as the uri after the www.example.com
basically not sure how to do this if it can be done
so if user a types www.example.com he needs to get redirected via 301
to
if user a types www.example.com/trackingid=8888 he needs to get redirected
to 2.com/xyx/trackingid=8888
in the second part the user can typ anying after the host the uri the user types needs to get preserved ansd added to
the redirected uri /xyx/
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects