Getting Mixed Content Error When Switched To SSL

General questions relating to Joomla! 3.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Locked
JRmastering777
Joomla! Apprentice
Joomla! Apprentice
Posts: 32
Joined: Thu Feb 02, 2017 6:50 am
Location: Las Vegas, NV
Contact:

Getting Mixed Content Error When Switched To SSL

Post by JRmastering777 » Thu Jun 08, 2017 10:03 pm

Hello! I recently added an ssl cert to my website, now using https. This works fine.

The problem is I keep getting the UNSECURE MIXED CONTENT ERROR.

I'm guessing its because of the images.

Theyre automatically referenced like this - img src="images/how-to-mix-master-songs.html

They should be - img src="https://mydomain.com/images/how-to-mix- ... songs.html

I think this would fix the problem.

1. How do I make the absolute paths show up for the images.

2. If I'm wrong and there's a better/different fix, please let me know.

THANKS!
Last edited by toivo on Fri Jun 09, 2017 2:09 am, edited 1 time in total.
Reason: mod note: moved, not related to Performance
John Rogers :)

Online Mastering By JR Mastering - https://cdmusicmastering.com
Mixing & Mastering Video Courses - http://learnmixingmastering.com

User avatar
sozzled
Joomla! Master
Joomla! Master
Posts: 11214
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: Getting Mixed Content Error When Switched To SSL

Post by sozzled » Thu Jun 08, 2017 10:13 pm

JRmastering777 wrote:I keep getting the UNSECURE MIXED CONTENT ERROR. I'm guessing its because of the images.
What makes you suspect that?
JRmastering777 wrote:[my image elements are] automatically referenced like this - img src="images/how-to-mix-master-songs.html
That's fine, that's how they should be referenced. It's called relative referencing. If you use absolute referencing that includes the use of the protocol qualifier (https:// or http://) that may cause you problems if you (a) change the site URL or (b) change any access rules within the .htaccess file(s) on your site.

I don't know enough about your site or where you're seeing the "UNSECURE MIXED CONTENT ERROR" message, what specific version of Joomla you're using, whether you have custom .htaccess rules in place, etc.

As far as is "humanly possible", avoid the use of absolute references especially if the content is located within the site (... unless, of course, you're hotlinking images—i.e. "stealing" someone else's bandwidth to display those images—that are located on another website ...)
“If you think I’m wrong then say, ‘I think you’re wrong.’ If you say ‘You’re wrong!’, how do you know?” :)


Locked

Return to “General Questions/New to Joomla! 3.x”