Forum

Thread tagged as: Question, Configuration

SSL Mixed Content

Hi,

Following on from my last post I've a quick question before I migrate my site to HTTPS.

I use the perch navigation on this site and when I hover over a link in the main navigation I see "www.colconquerors.com/about-cc.php" or "https://www.colconquerors.com/about-cc.php" when I copy the link. When I change to HTTPS does something need to change so that these links are seen as https and avoid the dreaded mixed content warnings?

Thanks in advance. I'm trying to make sure I have no issues with this as it's my personal business.

Look forward to hearing from you.

Regards

Rob

Perch: 2.8.18, PHP: 5.6.35, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.18), assets (2.8.18), categories (2.8.18), perch_blog (5.0), perch_mailchimp (2.0.1)
App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_blog', 'perch_mailchimp', ); ?>
PERCH_LOGINPATH: /perch
PERCH_PATH: /homepages/30/d205476839/htdocs/colconquerors/colconquerors2011/perch
PERCH_CORE: /homepages/30/d205476839/htdocs/colconquerors/colconquerors2011/perch/core
PERCH_RESFILEPATH: /homepages/30/d205476839/htdocs/colconquerors/colconquerors2011/perch/resources
Image manipulation: GD
PHP limits: Max upload 64M, Max POST 64M, Memory: 256M, Total max file upload: 64M
Resource folder writeable: Yes
HTTP_HOST: www.colconquerors.com
DOCUMENT_ROOT: /kunden/homepages/30/d205476839/htdocs/colconquerors/colconquerors2011
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
ROb Hawkins

ROb Hawkins 0 points

  • 3 years ago

Thanks in advance

Quick update on this.

When I look at other sites main navigation all of the primary links are set to https when hovered over as on this site for example:

https://www.alpcycles.com/

Look forward to hearing from you.

Regards

Rob

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you view source, is the https:// hard coded in the page, or is the browser inferring it from a relative URL?

Hi Drew,

Thanks for getting back to me quickly.

It's as follows so I think inferred from a relative URL?

Here's the HTML:


<ul class="nav-style"> <li class="selected"> <a href="/">Home</a> </li> <li> <a href="/schedule.php">Schedule</a> </li> <li> <a href="/about-cc.php">About Us</a> </li> <li> <a href="/trip-types.php">Trip Types</a> </li> <li> <a href="/feedback.php">Testimonials</a> </li> <li> <a href="/blog/">Blog</a> </li> <li> <a href="/contact.php">Contact</a> </li> <li> <a href="/trip-types.php">Trip types</a> </li> </ul>

I'm using the perch_pages_navigation as follows which I'm guessing generates this?

<nav class="position nav-collapse">
<?php perch_pages_navigation(); ?>
</nav>

Drew McLellan

Drew McLellan 2638 points
Perch Support

Looks fine. If you want to test locally first, you could spin up an ngrok tunnel with SSL enabled.

Okay so you would think this will become https once I've activated the certificate?

Drew McLellan

Drew McLellan 2638 points
Perch Support

What scenario are you thinking of where it wouldn't ?

Sorry for the delay in my reply Drew.

I was thinking it's not ideal if the links in the main navigation send people to other pages via the 301 redirect. In honesty I just want to make sure that I don't run into a lot of unexpected challenges going forwards with this.

Hopefully all is well but I'll be in touch in a couple of weeks time if I need any help when I do the switch.

Thanks again for the superb support and especially the speed of reply.

Cheers

Rob