jacky_70451
Jul 23, 2012Nimbostratus
URI redirection
Hi all,
I have a requirement to redirect the URI which is not used in our application. We get lot of 404 errors in our apache logs as this URI is bookmarked by the users.
Actual application URL:https://uat-app.xx.com/ep/faces/index.jspx
Old application URL:https://uat-app.xx.com/km/faces/index.jspx
If a user access the URL https://uat-app.xx.com/km/faces/index.jspx or URI /km it should redirect to https://uat-app.xx.com/ep/faces/index.jspx. i am putting the irule which i am going to implement. Please let me know if that will work or not.
if {[HTTP::uri] starts_with "/km" }{
HTTP::redirect https://uat-app.xx.com/ep/faces/index.jspx
}