cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
833
Views
0
Helpful
4
Replies

ACE 4710 redirect issue

ncfb-awarsame
Level 1
Level 1

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.

4 Replies 4

pablo.nxh
Level 3
Level 3

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

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.

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

It does and I have seen already.

Thank you pablo