WordPress SSL Issues
-
Trying to fine tune my ssl set up in wordpress and having some issues with the uploads folder. I have changed the urls in wp>>settings to https:// and force secure checkout for woocommerce in wc>>settings>>checkout also. And I have this inside my wp-config.php file:
/** Force Admin to SSL */ define('FORCE_SSL_ADMIN', true);
I’ve browsed through a lot of posts in this forum and implemented many solutions but still I am seeing this when I use https://nopadlock.com:
Here is what I’ve tried in htaccess:
created a htaccess file inside the uploads folder with this:# BEGIN WordPress # Force SSL RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} uploads RewriteRule ^(.*)$ https://www.mysite.com/wp-content/uploads/$1 [R,L] # END WordPress
of course I’ve changed my domain to mysite in this post for security reasons.
And I’ve tried this in my root htaccess:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} wp-content/uploads RewriteRule ^(.*)$ https://www.mysite.com/wp-content/uploads/$1 [R,L] </IfModule> <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} !^443$ RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L] RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # END WordPress
Any suggestions or ideas greatly appreciated.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘WordPress SSL Issues’ is closed to new replies.