I want all requests on a domain to be redirected to https, with the exception of just one particular file. I'm not sure how to accomplish this with .htaccess
-bash-3.2# cat .htaccess
ErrorDocument 404 http://www.example.com
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]
-bash-3.2#
The above code redirects everything perfectly, however, I need the robots.txt file to be accessible via http:// vs the https:// only.
%{REQUEST_URI}environment variable... – danlefree Dec 18 '10 at 10:32