Conditional https redirect to http depending on URL? (Apache)
- by Joel Marcey
Right now I redirect 100% of the time if someone does https://mysite.com
<VirtualHost *:443>
ServerAdmin webmaster@mysite.com
ServerName mysite.com
ServerAlias www.mysite.com
RewriteEngine on
RewriteRule (.*) http://%{HTTP_HOST} [L,R=permanent]
<VirtualHost>
However, now I want to conditionally redirect. If a user…