Forum Discussion
zeng_weiliang_2
Nimbostratus
Apr 28, 2007How to redirect the www.a.com to www.a.com/abc
If end user type an URL http://www.a.com to access a web server, but the default directory of web server is empty, how to write an iRule to redirect the web page to http://www.a.com/abc automatic so client can access another directory of web server?
- hoolio
Cirrostratus
You can use HTTP::redirect (Click here for the wiki page) to redirect clients that make a request for the root document to the /abc URI:when HTTP_REQUEST { if {[HTTP::uri] eq "/"}{ HTTP::redirect http://[HTTP::host]/abc } }
- zeng_weiliang_2
Nimbostratus
Thanks, I will try it.
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