05-03-2010 09:42 AM
Hello,
I am doing a 80 to 443 redirect on a 11503 CSS and would like to know if I can do a "wildcard" redirect for after the / ? For example:
I currently have this
content test-redirect
vip address 10.10.10.10
redirect "https://test.domain.com"
protocol tcp
port 80
url "/*"
active
Can I use this?
content test-redirect
vip address 10.10.10.10
redirect "https://test.domain.com/*" <- use the wildcard *
protocol tcp
port 80
url "/*"
active
Thanks,
Dave
05-04-2010 05:25 AM
Adding the asterisk, would not do what you want.
The CSS is not going to replace the asterisk with the path introduced by the user.
Here are all the methods to do a redirect on the css.
Try to use the solution with the domain command.
This should only replace the domain and leave the path unchanged.
Gilles.
05-04-2010 06:09 AM
Giles,
Thanks, yes, I did some testing and realized the * doesn't work. I configured a redirect service instead of the redirect content rule as below and this works.
service test-redirect
type redirect
domain "https://test.domain.com"
no prepend-http
ip address 1.1.1.1
keepalive type none
active
Dave
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