HTTPS Rewrite issue
-
Hi there,
I’ve been using this plugin for a while now and have an issue.
We forced all http and www https traffic to our https non-www version of our website.I’ve added this rule since it started adding some extra lines after the web address:
RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache)My http to non-www https 301 redirect is working, but my www to non-www https redirect stops functioning once i add this line to my htaccess.
Tried some other option with the same result.
My .htaccess:
# BEGIN HTTP to HTTPS rewrite
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteCond %{HTTP_HOST} ^(?:www\.)?(.+)$ [NC]
RewriteCond %{REQUEST_URI} !wp-content\/cache\/(all|wpfc-mobile-cache)
RewriteRule ^ https://bodis.nl%{REQUEST_URI} [L,NE,R=301]
# END HTTP to HTTPS rewriteKind regards,
JustinThe page I need help with: [log in to see the link]
- The topic ‘HTTPS Rewrite issue’ is closed to new replies.