FIX issues with mixed content

How to FIX issues with mixed content reported by semrush like below

Best Kids’ Birthday Party Ideas For Different Seasons Share-Ask

https://share-ask.com/birthday-party-ideas/ http://share-ask.com/wp-content/uploads/best-kids-birthday-party-ideas-for-different-seasons.jpg

Neither of your links work.

What issues is semrush reporting? Does it not give you an indication of how they should be resolved?

I have found mixed content errors comes from a https site that has http links. You need to change any http links to https ones or ignore the error.

2 Likes

but how to do it

The Semrush website is telling you the same thing on your screen shot.

You can not have a secure website that is then linking to or displaying unsecure items.

There are a couple of plugins available that will fix up some of the warnings.

YMMV, but might be worth a try.

I need non plugin option ive tried dat plugin

Then just correct the code by hand.

You have a field to change the URL on the right. Change it to https://share-ask.com/wp-content/uploads/how-to-get-a-girl-to-love-you.jpg

dere r so many url how will i do manually url

By hand

any script you know that you disk

You could try updating the URLs in the WP database itself. But be warned, if you take a wrong step, this could crash your site. And obviously, make a backup of any database before you attempt to manipulate it.

https://www.google.com/search?q=update+urls+in+wp+database

http://share-ask.com/wp-content/uploads/What-would-you-do-if-you-had-no-Fear-of-Failure.jpg dis is ok but this https://share-ask.com/wp-content/uploads/What-would-you-do-if-you-had-no-Fear-of-Failure.jpg throw error

Sorry, I don’t understand. The first link 404s, but the second link works fine.

Use the developer tools in Firefox or Chrome or Safari to see the error with the specific images.

  1. You may need to change the URL of media item on the post/page content to HTTPS. SearchRegEx is a good plugin to be able to search and replace through all pages, pages.

  2. You may need to change to a relative path for images in CSS files i.e background-image: url(http://example.com/themes/wp-content/theme/images/image.jpg) to background-image: url(images/image.jpg)

3 You may need to improve to HTTP from absolute paths in php themes files, i.e change http://example.com/image.jpg to //example.com/image.jpg ; that will allow your resources to default to https.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.