• 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 rewrite

    Kind regards,
    Justin

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter justinvdhoek

    (@justinvdhoek)

    I fixed it.
    My htaccess contained a lot more from WPFC

    # BEGIN WpFastestCache
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTPS} =on
    RewriteCond %{HTTP_HOST} ^www.bodis.nl
    # Start WPFC Exclude
    # End WPFC Exclude
    # Start_WPFC_Exclude_Admin_Cookie
    RewriteCond %{HTTP:Cookie} !wordpress_logged_in_[^\=]+\=Bodis
    # End_WPFC_Exclude_Admin_Cookie
    RewriteCond %{HTTP_HOST} ^www.bodis.nl

    Remove the “www.” from the RewriteCond and now it is working properly so far

    • This reply was modified 6 years, 4 months ago by justinvdhoek.
    Plugin Author Emre Vona

    (@emrevona)

    what is the url on options general? does the url start with “www.” ?

    https://resmim.net/preview/Yc9OZk.jpg

    • This reply was modified 6 years, 4 months ago by Emre Vona.
    • This reply was modified 6 years, 4 months ago by Emre Vona.
    Thread Starter justinvdhoek

    (@justinvdhoek)

    Nope, it’s changed to non-www a few months ago.
    Might be the .htaccess was never updated, but the solution is in my second reply.

    Thank you for replying so fast!

    Plugin Author Emre Vona

    (@emrevona)

    you need to deactivate and reactivate wp fastestcache to update .htaccess. you are welcome.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘HTTPS Rewrite issue’ is closed to new replies.