WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Multisite + Marketpress Plugin + SSL (11 posts)

  1. zerozendesign
    Member
    Posted 6 months ago #

    We are running several sites under a multisite install and needed to add an ssl to one of the sites for eCommerce. We opted for Marketpress for ecomm. After installing the ssl and having the dedicated IP assigned, all the sites propagated without a hitch...EXCEPT the https pages of the shopping cart. All images and styles are being stripped on the secure pages.

    Site: http://hazelwoodsoapcompany.com is mapped from http://codelessme.com/hazelwood (multisite)

    Note:

    The base domain - codelessme.com is an add on domain in the hosting account

    Any help would be greatly appreciated. How do others handle multisite ssl needs since images are pulling from the base directory, not a mapped domain?

  2. They are not showing because they are being served by the original multisite domain. For example, the logo is being served from https://codelessme.com/hazelwood/wp-content/uploads/sites/14/2013/11/logo.png instead of https://hazelwoodsoapcompany.com/wp-content/uploads/sites/14/2013/11/logo.png. Because the SSL certificate doesn't match the browser doesn't show it because it thinks it's insecure.

    I think this is an issue with the Enfold theme that you are using because they should ALL be loaded via hazelwoodsoapcompany.com. I'm not exactly sure what the issue is without looking at the theme code.

    Something like this in your .htaccess might work but totally untested.

    RewriteCond %{HTTP_HOST} codelessme.com
    RewriteCond %{REQUEST_URI} ^/hazelwood/wp-content/uploads/sites/14
    RewriteRule ^hazelwood(.*)$ https://hazelwoodsoapcompany.com$1 [L]

    But it looks like your on some type of managed network where you can't really edit the .htaccess file. Is that right??

  3. zerozendesign
    Member
    Posted 6 months ago #

    Hey there Patrick.

    Thanks for getting back to me. Yea, it seems a little strange. After I mapped the domain, I would think the files would then map to that domain as well. I have done some looking around and surprisingly, getting a solid answer is seemingly impossible.

    I will contact the theme dev to see what the issue might be. As for the managed network - no. Hosted with Siteground. Have access to .htaccess. I will give your suggestion a try and see what happens.

    Thanks!

  4. zerozendesign
    Member
    Posted 6 months ago #

    Patrick -

    Gave that snippet a try. Didn't seem to make any difference. What else might you recommend? I'm not super familiar with multisite and possibilities/troubles.

  5. Sorry it didn't work, was just an idea :( . Unfortunately I'm out of ideas or suggestions on this one other than taking a closer look at the theme. Perhaps someone else like Mika will have another suggestion.

  6. zerozendesign
    Member
    Posted 6 months ago #

    Thanks again Patrick. I will press on and see what I can find out.

  7. They are not showing because they are being served by the original multisite domain. For example, the logo is being served from https://codelessme.com/hazelwood/wp-content/uploads/sites/14/2013/11/logo.png instead of https://hazelwoodsoapcompany.com/wp-content/uploads/sites/14/2013/11/logo.png.

    Two things to do here.

    1) Search/replace POST CONTENT for hazelwoodsoapcompany.com - change the URL there. This will take care of your old images.

    2) This is something I DO NOT recommend lightly, but sometimes it must be done. Especially with SSL being snippy... Make a backup oif your database (yes it's one of those things) and go to /wp-admin/network/sites.php and edit the hazelwood site. Click on the settings tab and look for Upload Url Path -- change it to https://hazelwoodsoapcompany.com/wp-content/uploads

    That will take care of any automated image paths.

    Normally domain mapping handles it for you, sometimes it gets teh dumbz.

  8. Hmm, didn't know that the domain mapping plugin has such a flaw. Interesting that some files get away without being mapped.

  9. zerozendesign
    Member
    Posted 6 months ago #

    @Ipstenu

    Really appreciate you chiming in. I will look into this first thing Monday and get it sorted. Why would my css also be getting stripped? If you take a look at the homepage and then at the shopping cart secure pages, it strips my google font, custom css, etc. Thoughts?

  10. It doesn't happen to me consistently. halfelf.org? No problems. store.halfelf.org (which is a subdomain mapped to another subdomain)? Teh dumbz. I haven't sat to debug it since I was in a bit of a rush :)

    CSS being stripped... Again we're back to HTTPS at fault. View source. Is WP calling http:// or httpS:// for your CSS?

    You may need to use http://wordpress.org/plugins/wordpress-https/

  11. zerozendesign
    Member
    Posted 6 months ago #

    Got this all resolved by changing the links in the database. Thanks for everyone's help.

Reply

You must log in to post.

About this Topic