RewriteEngine on Options +FollowSymlinks RewriteCond %{SERVER_PORT} ^443$ RewriteRule ^robots.txt$ robots_ssl.txt
Robots.txt
User-agent: * Disallow: /bla
Robots_ssl.txt
User-agent: * Disallow: /