code in htaccess
-
Hi,
this plugin works great and all.
Nothing against it.But I would really like to do without it.
I followed the instructions here:
https://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/and copied this code in htaccess:
RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www. [NC] RewriteCond %{HTTP_HOST} ^(?:www.)?(.+)$ [NC] RewriteRule ^ https://%1%{REQUEST_URI} [L,NE,R=301]Slightly different code from the one in the blog (someone in the google webmaster forum suggested me this second one was better).
All looks fine apparently,
only small problem is this:
when I go to:http://website.com/some-url-here/
I don’t get redirected to:
https://website.com/some-url-here/
but I get redirected to:
https://website.comSo now I remove the htaccess and installed your plugin and this has been fixed.
Can you please tell me which htaccess is your plugin injecting/using so that your redirects are correct and mine are wrong?
Thank you!
The topic ‘code in htaccess’ is closed to new replies.