htaccess rewrite conflict with wordpress rules and ssl

Edit your existing code to exclude the index.php from redirecting like this:

RewriteCond %{HTTPS} on
RewriteCond %{REQUEST_URI} !^/info/
RewriteCond %{REQUEST_URI} !^/index\.php$
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,QSA,L]

For an explanation, check the answer to this question at Stackoverflow:
Issue with .htaccess redirecting all pages to HTTPS except one
.

Leave a Comment