I have a directory accessible via the web and I've set the SSLRequireSSL option on it so you can't hit it without SSL.<BR><BR>Is there a way, when someone hits the page using HTTP, to automatically ...
Your rewrite rule says "redirect /anything to /mediawiki" -- that includes /mediawiki, hence the loop. Unless you add the [L] (last rule) flag, the targets of rewrite rules are themselves evaluated.