Forum Discussion
Create iRule 404 Page redirect
Hi All i have a web site that go https://mysite.com/test
i want to create iRule that says
if someone write the site with mistake for example
https://mysite.com/tst (tst instead of test)
instead of getting 404 error page
he will redirect to
Thanks All!
Create an iRule as below:
when HTTP_RESPONSE { if { [HTTP::status] contains "404"} { HTTP::redirect "" } }
Assuming you will have an http and https version, you will need to apply this iRule to the relevant VS.
- Gonzalex_330537Cirrostratus
Create an iRule as below:
when HTTP_RESPONSE { if { [HTTP::status] contains "404"} { HTTP::redirect "" } }
Assuming you will have an http and https version, you will need to apply this iRule to the relevant VS.
- DudiTrustnet_33Nimbostratus
Thank you its work!
- Gonzalex_330537Cirrostratus
Of course ;)
Do you mind marking this as answered, please.
thanks.
- DudiTrustnet_33Nimbostratus
done!
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