Forum Discussion

Q_Wade_Billings's avatar
Q_Wade_Billings
Icon for Nimbostratus rankNimbostratus
Dec 05, 2005

IP based URI redirect to named based URI

I need to be able to rewrite/redirect numerical based URI's to named based URI's. For example, if someone was to put http://x.x.x.x/index.jsp into a browser, I would need to rewrite and redirect that URI to http(s)://www.foobar.com/index.jsp. Here is the rule I have come up with, and I just need a sanity check.

 

 

rule my_rule {

 

if (http_uri equals "x.x.x.x") {

 

redirect to "https://www.foorbar.com/%u"

 

}

 

else {

 

use pool web_pool

 

}

 

}

 

 

Thanks,

 

 

QWade
No RepliesBe the first to reply