12-13-2010 11:13 AM
Hi veryone
I trying to redirect http://www.ncfbins.com/myAccount to https://www.ncfbins.com/myAccount, but it does not keep the value after /myAccount/
I want ACE to keep the part of url string after myAccount. How can I do that?
thank you.
12-13-2010 12:02 PM
Hello buddy,
To keep the URI on the redirected request you need to use the %p parameter, try the following:
rserver redirect NCF
webhost-redirection https://%h/%p
inservice
HTH
__ __
Pablo
12-13-2010 04:28 PM
Thanks pablo,
https://%h/%p works if you keep the entire url. example http://example.com/example/file is rewriten https://example.com/example/file.
I want the hostnae and first /string after hostname rewritten, but anything after it to be kept. for example:
http://example.com/example/file1 --------https://example.com/pablo/file1
http://example.com/example/file2 ------https://example.com/cisco/file2
I hope this make sense
thank you.
12-14-2010 09:58 AM
Hi pal,
I'm afraid that what you're trying 2 do is not possible You can't instruct the ACE to copy only a slice of the dynamic content
of the URI.
In your example we could set a static webhost redirection to be like: https://example.com/cisco/%p but the redirected URL will end up looking
like https://example.com/cisco/example/file2.
As you can see the ACE keeps all the string from the original request, that's what %p is designed to do.
Hope this makes sense and sorry to break the bad news =/
__ __
Pablo
12-14-2010 10:24 AM
It does and I have seen already.
Thank you pablo
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide