Forum Discussion
jrosales2000_10
Apr 29, 2011Nimbostratus
What did i do wrong with this irule for redirection based on url
Hi, i am trying to accomplish the following (we are running LTM 1600's version 9.4.6):
If a user enters url: oem1.website.com they are routed to oem1.website.com/oem1/vin.aspx
If a...
jrosales2000_10
May 11, 2011Nimbostratus
Hello again, hoping someone can stick with me while i figure this out. We did get the missing image to show up by removing a ~ from the following line of code in the vin.aspx page:
OLD VERSION (button missing)
ImageUrl="~/Jag/images/btn-enter.png" OnClick="imgbtnNext_OnClick"
NEW VERSION (button appears)
ImageUrl="/Jag/images/btn-enter.png" OnClick="imgbtnNext_OnClick"
However, when clicking that button, the traffic is being routed back to the /jag/vin.aspx page that the irule is sending root traffic to instead of the /jag/pre.aspx page which is what the code is calling in this line in the code behind:
(this line of code is in the vin.aspx.cs file)
Response.Redirect("~/jag/pre.aspx?vi=" + _vinId.ToString());
We have tried the following:
Response.Redirect("/jag/pre.aspx?vi=" + _vinId.ToString());
Response.Redirect("jag/pre.aspx?vi=" + _vinId.ToString());
Response.Redirect("/pre.aspx?vi=" + _vinId.ToString());
All variations are sending the user back to the /jag/vin.aspx page that is specified in the irule. I cannot get it to route the traffic to the /jag/pre.aspx page unless i take the irule out of the picture.
If we hit the site directly from the server, the site is operating correctly, sending the user to the /jag/pre.aspx page as the code specifies (as the irule is not in play here, of course)
Any other ideas on what might be happening here? It appears to my novice eyes, that the irule is directing all traffic back to the /jag/vin.aspx no matter where the code is directing traffic.
Thank you again!
Jodie
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects