Forum Discussion
Need iRule for URL redirection with part of URI as dynamic
I am looking for an iRule such as
https://www.abc.com/cat/dog/tiger.aspx with "anything" after that should redirected as https://www.xyz.com//cat/dog/tiger with "anything" after that.
Example:
https://www.abc.com/cat/dog/tiger.aspxqqqqqqqqqqrrrrrrrrrr
https://www.xyz.com//cat/dog/tigerqqqqqqqqqqrrrrrrrrrr
Example:
https://www.abc.com/cat/dog/tiger.aspxqqqqqqqqqqrrrrrrrrrr/mmmmmnnnnn/yyyyy
https://www.xyz.com//cat/dog/tigerqqqqqqqqqqrrrrrrrrrr/mmmmmnnnnn/yyyyy
- Stanislas_Piro2
Cumulonimbus
use this irule :
when HTTP_REQUEST { if {[HTTP::host] equals "www.abc.com" && [HTTP::path] equals "/cat/dog/tiger.aspx"} { HTTP::redirect "https://www.xyz.com//cat/dog/tiger[HTTP::query]" } }
- Nilendu
Nimbostratus
Thank you very much; but this is not working.
- Nilendu
Nimbostratus
Still waiting for assistance
- Stanislas_Piro2
Cumulonimbus
can you provide real URI (not hostname) with obscured data...
because I'm not sure this URL is a good example...
https://www.abc.com/cat/dog/tiger.aspxqqqqqqqqqqrrrrrrrrrr/mmmmmnnnnn/yyyyy
- Nilendu
Nimbostratus
/sma/eb/viewcheckfreebills.aspx
- Nilendu
Nimbostratus
Still waiting for assistance
- Stanislas_Piro2
Cumulonimbus
Devcentral is not a support but a forum with most of contributors who are not F5 employee!!!
please don’t say anymore you are still waiting, this is annoying and nobody will answer anymore!
the url you provided ends with aspx. What is the real end of the url???
- JRahm
Admin
Stanislas is correct, Nilendu. These forums are here for F5 employees, customers, partners, and other interested parties to help each other and exchange ideas, but there is no support agreement in place. This is a community where hopefully we can encourage each other and have patience with gratitude that there are others willing to contribute to our journeys.
If you need immediate assistance, you can open a support case with F5 support and if it is not an issue that support can directly address for you, you can inquire with professional services.
- Nilendu
Nimbostratus
I apologize for my comments, and thank you all very much for all the helps I received from you guys over the years.
Recent Discussions
Related Content
* 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