rewrite rules for SSL
-
Hi,
I had a problem accessing my site after installing WP Super Cache: With a browser, I could access the site both in plain and SSL. But I could not change between the two, Firefox reported “neverendling loop” or something. (Interestingly, IE did not and worked perfectly well in the same situation.)
When accessing the site by using an app (official Android WordPress App) or a Lightroom Plugin, I could not connect when defining my site as “https://site”. In this case, all I got was a http error 502 “bad gateway”. Plain (“https://site”) was working fine.
I seem to have traced it down to the rewrite rules WP-SC put into the htaccess file. After replacing this…
RewriteCond %{HTTPS} on
for this…
RewriteCond %{HTTP:X-Forwarded-Proto} =https
the problem appears to be solved. (There _is_ already a comment within the rules inserted by WP-SC suggesting such a substitution.)
My question: Are there any drawbacks to this substitution? If not, could this change be integrated into WP-SCs native code? That way, there wouldn’t be the risk of the manual changes being overwritten next time WP-SC wants to update its lines.
Regards
- The topic ‘rewrite rules for SSL’ is closed to new replies.