08-24-2010 02:26 PM
Hello,
I would like to know if is possible redirect one url and keeping one part of itself, using L7 rules with ACE 4710.
Follow the exemple of url and redirect desired.
From:
http://www.domain.com/Vitrine/Search/Search.aspx?gravaBusca=1&strBusca=celular
To:
http://search.domain.com/Search?gravaBusca=1&strBusca=celular
Thanks,
Leonardo.
08-24-2010 11:34 PM
Hi Leo,
This seems fairly possible to me however I have a question for you... Will the redirected URL also have the "search.aspx?blah" structure? Like this:
http://search.domain.com/Search.aspx?gravaBusca=1&strBusca=celular
If yes we can configure a webhost-redirection rserver to append the original dynamic content to the new URL using the URL path instruction (%p)
If not then you'll have to configure "fixed" webhost-redirections strings for each .aspx dynamic content that you need since you have the word "search" twice on the URI and using (%p) will not work.
I'll try to make myself clearer on this with a configuration example:
First scenario:
If the redirected URL will also use .aspx then the redirect rserver is going to look like the following
rserver redirect R1
webhost-redirection http://search.domain.com/Search.aspx%p 301
inservice
The %p instructs the ACE to copy anything that was after the .aspx on the original request and add it to the new URL.
Second scenario
If your redirected URL doesn't have/need the .aspx string then %p is useless as if you configure it after the word "search" you'll end up with a URL looking like this:
http://search.domain.com/Search/Search.aspx?gravaBusca=1&strBusca=celular
So everytime you need a redirect for a dynamic site you would need to go and manually enter the entire URL to make it work:
webhost-redirection http://search.domain.com/Search?gravaBusca=1&strBusca=celular 301
Not quite sure if you made up the URI's while writting down the post but as you can see the problem with the example, if these aren't your real URL's let us know so we can get you a right config example.
Hope this clears things out =)
__ __
Pablo
08-25-2010 06:10 AM
Hi Pablo,
Thanks for your explanation, but I think I have explained wrong. My issue/doubt is I need to keep one part of the URL but this part is dynamic, because this part is a seach from the clients.
Therefore, I need something similar at the second scenario, but the part after "?" is dynamic.
I will change my exemple to try explain better!
On L7 rule for match I need to pass the part after Search.aspx like a variable because is a dynamic URL.
URL requested by client
http://www.domain.com/Vitrine/Search/Search.aspx?gravaBusca=1&strBusca=celular
Match condition (red)
http://www.domain.com/Vitrine/Search/Search.aspx[variable= ?gravaBusca=1&strBusca=celular]
After match the redirect needs be like bellow.
http://search.domain.com/Search[variable?gravaBusca=1&strBusca=celular]
Is it possible?
Thanks a lot.
Leonardo
08-31-2010 01:26 PM
Hi Leo,
Same thing here, unless you can make the second URL to look like the one below (with the aspx) we can't dynamically append the string after the variable to the second URL.
http://search.domain.com/Search.aspx[variable?gravaBusca=1&strBusca=celular]
The problem is that without the .aspx on the second URL the ACE doesn't have a guideline indicating what's the dynamic portion of the URL that we needs to be appended.
Sorry to break the bad news but if .aspx can't be used on the redirected URL we have no way to accomplish dynamic redirection.
Regards.
__ __
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