Forum Discussion
Eugene_Chupkin_
Nimbostratus
Feb 25, 2008iRule to serve up two different robots.txt files for http and https.
My secure and non secure content are in the same DocumentRoot as is pretty standard in many cases. I now have the need to serve up a different robots.txt for anyone who initiates a connection using https. Can someone suggest the best way to approach this problem.
Thanks!
- hoolio
Cirrostratus
Hi,Use this rule to rewrite the HTTPS requests to robots.txt to robots_https.txt when HTTP_REQUEST { Check if the request is to /robots.txt if {[HTTP::path eq "/robots.txt"}{ Rewrite the request to /robots_https.txt HTTP::path /robots_https.txt } }
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