kavoir.com Posted April 26, 2015 Share Posted April 26, 2015 I just installed SSL on one of my sites. While it's working well on the main site, it's not on the wordpress blog here. I have added this snippet in .htaccess of the blog: RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] But it's still not fully secure with some assets not in secure mode. I used Httpfox to check all the HTTP requests and all HTTP requests are correctly redirected to HTTPS. Now I don't know why it's still not fully secure. I thought redirecting all HTTP assets to HTTPS would be the deal in this case? Is it?If not, it seems the only option left for me is to manually change all HTTP assets (href, src, etc.) to HTTPS across all the content. Is there any easy way to achieve this for the entire WP blog? A plugin? This doesn't seem right to me as I'm afraid it would neglect one asset or two on some of the posts or pages.This really sucks.....any help would be appreciated! Quote Link to comment https://forums.phpfreaks.com/topic/295871-wordpress-force-https-and-change-all-http-links-to-https/ Share on other sites More sharing options...
QuickOldCar Posted April 27, 2015 Share Posted April 27, 2015 Login to your WordPress dashboard and navigate to Settings > General.Ensure that the WordPress Address (URL) and Site Address (URL) are https. If not, add s after http to make https and save it. Quote Link to comment https://forums.phpfreaks.com/topic/295871-wordpress-force-https-and-change-all-http-links-to-https/#findComment-1510032 Share on other sites More sharing options...
tampaphp Posted May 9, 2015 Share Posted May 9, 2015 If that doesn't work create a .htaccess file RewriteEngine on# if a directory or a file exists, use it directlyRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d# otherwise forward it to index.phpRewriteRule . index.phpRewriteEngine OnRewriteCond %{SERVER_PORT} 80RewriteRule ^(.*)$ https://yoursite.com/$1 [R,L] Quote Link to comment https://forums.phpfreaks.com/topic/295871-wordpress-force-https-and-change-all-http-links-to-https/#findComment-1511224 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.