• Resolved Ike Ten

    (@ike-ten)


    Hello @rogierlankhorst,

    Thanks for this simple but effective plugin.
    It’s working nicely on my site yet it affects all addon domains and tries to redirect them to https.

    Since they are not on https they return an insecure and invalid ssl certificate error.

    Can you kindly suggest how to limit it to just one domain; the main one in the root folder. Below is rule really simple ssl adds to my .htaccess file in my root folder

    # BEGIN rlrssslReallySimpleSSL rsssl_version[2.3.8]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL

    Thank you.
    Ike.

    https://wordpress.org/plugins/really-simple-ssl/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    I’ve just replied to your post on really-simple-ssl.com

    Thread Starter Ike Ten

    (@ike-ten)

    For anyone having a similar issues
    This is what worked for me. it also works for sub domains
    1. Go to Really simple ssl settings and check Stop editing the .htaccess file. save this setting. Alternatively you Add this line to your wp-config.php define( 'RLRSSSL_DO_NOT_EDIT_HTACCESS' , TRUE );.

    They both do the same same thing; they stop Really simple ssl from editing the your .htaccess file henceforth.

    2. Now add Add the following conditions to the rewrites currently existing in your .htaccess, between the really simle ssl markers. Add them after the first ssl RewriteCond, but before the actual RewriteRule:

    RewriteCond %{HTTP_HOST} ^domain.com [OR]
    RewriteCond %{HTTP_HOST} ^www.domain.com

    So your really simple ssl rule changes from this below

    # BEGIN rlrssslReallySimpleSSL rsssl_version[2.3.8]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL

    to this below here.

    # BEGIN rlrssslReallySimpleSSL rsssl_version[2.3.8]
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP:X-Forwarded-Proto} !https
    RewriteCond %{HTTP_HOST} ^domain.com [OR]
    RewriteCond %{HTTP_HOST} ^www.domain.com
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    </IfModule>
    # END rlrssslReallySimpleSSL

    Where domain.com and http://www.domain.com is the domain you still want ssl on.

    Note your version number may be different the one here is at the time of writing this.

    Refer to this post here for a similar issue and solution.

    Credits to Rogier Lankhorst ( @rogierlankhorst ) for coming up with this fix.

    Just wanted to say MAJOR THANKS for sharing the solution, came in handy today. I would suggest adding this to the documentation. Cheers.

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    Good to hear. I’ve added it as an article to the documentation.

    Hi Rogier,

    I have followed the instructions above and here. However, it is not working for me. It is continuing to add the ‘s’ to the staging site, and even when I try to delete it from the url, it keeps putting it back.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Https redirection Affects all addon domains’ is closed to new replies.