Forum Discussion
hooleylist
Feb 25, 2008Cirrostratus
Hi,
If you created a robots_https.txt on the webserver(s), you could use an iRule to rewrite the request on the HTTPS virtual server. Or you could respond directly from the rule with the HTTPS version of the robots.txt file and leave the web server to answer for the HTTP version.
HTTP::uri (Click here)
HTTP::respond (Click here)
Here is an example of the first option:
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
}
}
Aaron