I’ve just replied to your post on really-simple-ssl.com
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.
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.