• Resolved nootkan

    (@nootkan)


    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:

    Screenshot

    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.

    • This topic was modified 8 years ago by nootkan.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Absolutely NONE of that is necessary. Run your site all-SSL all the time. Remove the plugins. If you have SSL enabled on your host, use the plugin ‘better search and replace’ and change https://mysite to https://mysite. Before doing so, disable any caching plugins. Afterwards, delete all cookies you have for the site. You can then re-enable caching and all should go well.

    Thread Starter nootkan

    (@nootkan)

    Thanks for the reply. I can’t remove my plugins as they are needed for the function of the website. Can’t run a store without the woocommerce plugin for example.

    I have tried to only set the urls in wp>>settings to https:// and change nothing else but I still see the upload folder not being ssl.

    I don’t have any caching plugins enabled on the site.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    No, I meant any SSL related plugins. Use the plugin “better search and replace” as I suggested to fix up all the URL references in your database.

    Thread Starter nootkan

    (@nootkan)

    Thanks for the reply. I have no plugins for ssl. I tried to use htaccess only based on some research.
    https://www.thepolyglotdeveloper.com/2014/12/force-https-pages-wordpress-site/
    https://designmodo.com/wordpress-https/

    I’ll take a look at the plugin you recommend. Hopefully this will be a one time thing as I am not wanting to have to do this again.

    Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Better search and replace is one time thing. Once you’ve run it and things work you can remove it.

    Thread Starter nootkan

    (@nootkan)

    Awesome thanks again. This worked for me. I will probably have to install and run again if the wow slider plugin is updated but it is only one url so I can live with that. ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘WordPress SSL Issues’ is closed to new replies.