• I am using wordpress and the WishlistMember plugin and I have the following two functions defined in wp-config.php:

    define('FORCE_SSL_ADMIN', true);
    define('FORCE_SSL_LOGIN', true);

    But I am also wanting to force SSL on a signup page of example.com/wishlist-member however if I navigate to the wishlist-member then navigate elsewhere on the website it keeps https enabled unless I go to the homepage to “reset it”

    I want the entire website to be forced to have www. and the force the entire website to be non-SSL with the exception of login forms, admin pages, wishlist-member

    I tried the following rules:

    RewriteEngine On
    RewriteCond %{HTTPS} on
    RewriteRule ^/?$ https://%{SERVER_NAME}/ [R=301,L]
    
    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^(wishlist-member/.*)$ https://www.example.com/$1 [R=301,L]

    But it doesn’t quite work, the wishlist-member bit works but if I navigate to any other page it keeps the https…

  • The topic ‘Forcing SSL on a certain part of website only’ is closed to new replies.