I'm setting my homepage to redirect from https to http. I got it partially working but I don't understand one thing, which is causing it to break other rewrites
Here's what I have:
#https homepage to http
RewriteCond %{SERVER_PORT} =443
RewriteCond %{REQUEST_URI} / [NC]
RewriteRule (.*) http://www.example.com/ [R=301,L]
My problem is with the REQUEST_URI / part. I don't have any wildcards or any sort of regex matching, so I would think the only request that should match this is a request for the homepage. But it also matches things like /dir/ - basically any request that ends in / will match.
So this screws up other rewrites for subdirectories that are accessed through https - the rule runs for them as well.