1 (edited by dave 2025-03-21 01:41:14)

Topic: How do I change the website URL on the System Setup Page?

Hello.

My website URL is listed as http://www.kruegerphoto.com/KPMain2/ and I'd like to change it to https://kruegerphoto.com/KPMain2/.  I assume this gets set up during the installation (back in 2016) and to change it, I'd have to edit some configuration file. 

The problem is that the "http://www." is used on all the image URLs in the SEO section of the page code sent out to visitors (including search engine crawlers).

Can someone please help me with this?

Thanks,

-Dave

[edit]  Sorry.  This problem apparently only affects the og:image code line.  The image info in the SEO section is relative and doesn't include the website address.  But, I'd still like to fix it because Bing Webmaster flags it as an error.

Re: How do I change the website URL on the System Setup Page?

Normally, if you change the location of a Showkase site, you can follow the Changing Your Installation Directory instructions here but I'm not sure this will work in your case (although it might be worth checking out).

For reference, the Showkase paths are stored in the _showkase/showkaseconfig.ini file but it should be noted that these values should not be changed manually. They are generated by the Setup process. Also, there is no reference to 'www' in this file on your web server so I don't think that running Setup again will help.

If the problem is just with the og:image entries, then what happens if you log into your site via https://kruegerphoto.com/KPMain2/admin rather than https://www.kruegerphoto.com/KPMain2/admin and then re-publish your site (or make a small change to a gallery page, republish and then check the og:image entries for the changed page)? Maybe this will help.

Re: How do I change the website URL on the System Setup Page?

Steven, thanks for your detailed response.

You solved part of the issue.  You're absolutely right that the way I sign in determines whether the site includes the www prefix in website address on both the Setup page and in the og:image code.  My keepass entry had the www as well as the http.  I changed it to https and eliminated the www and, while the www issue is solved, the http issue remains on both the Setup page and in the og:image code.  My concern is that, if Google is seeing http instead of https on image links, it may ignore the images.

This is all stems from my inability to get google to pick up any of my new gallery images even after submitting a sitemap and submitting the page URLs directly to the Google search console.  I've been looking for anything that might cause that.  My new galleries were added after changing to the Kosel theme, but I don't know if that has anything to do with the problem.  I have problems getting Google to pick up images in other galleries as well.  Sorry for getting longwinded but I've been struggling with this for a while.  I'm afraid Google has stopped using image info inside a noscript block due to some potential "cloaking" issue.

Article here: https://www.orbitmedia.com/blog/noscript-tag-seo/

Re: How do I change the website URL on the System Setup Page?

Digging into the Showkase source, it looks like the Open Graph tags use hard-coded "http://" paths.
This is not ideal by any means but it should be easy to change them to "https://".
Change "http://" to "https://" for the og:url and og:image entries in the following files:

  • _themes\base\pagetypes\basetheme.tpl

  • _themes\manager\pagetypes\juicebox.tpl

  • _themes\maribo\pagetypes\simpleviewer.tpl

  • _themes\base\pagetypes\simpleviewer.tpl

Don't forget to re-publish your site after making the changes.
I'll see if I can figure out a way to get Showkase to use the current protocol rather than hard-coding "http://" (disclaimer: I'm not the author of Showkase) but, in the meantime, this might hopefully be a suitable workaround.

Re: How do I change the website URL on the System Setup Page?

Thanks!  That fixed the http issue in the og tags. 

It looks like there's more going on here than I can figure out.  Bing and Google let you view the page source after you do a "Live Test" and in both cases the image info from the SEO block is not there, but it is clearly there when I look at the source in my browser.  I have a Wordpress blog under that same domain and search engines pickup every image and tag from the blog with no problem.   I also have a Piwigo site with images that get picked up by search engines.  I think it's possible search engines have changed their policy to no longer collect image info from inside a noscript block and there might not be a solution if that's the case.

In any case, I do appreciate all the time you put into helping me resolve the http and www issue.  Your support for Showkase has always been topnotch and I appreciate that.

-Dave

Re: How do I change the website URL on the System Setup Page?

I've figured out a nice clean way to ensure that Open Graph tags use the correct scheme (http:// vs https://).
I'm just testing that the checks I'm using are robust enough for odd edge cases and when I feel it's ready, I'll add it to my patch (here).

Unfortunately, as you suggest, the Google vs <noscript> tags issue is something I'm not sure has an easy fix.

Re: How do I change the website URL on the System Setup Page?

It's good to hear you found a way to fix the og coding without having to edit files.  I plan to continue to research whether Google and Bing are really ignoring noscript image data or if I'm doing something else wrong.  In any case, Showkase has worked very well for me for 9 years, so I can't complain even if I can't solve the issue.  It's also hard to argue with Google's reasons for adjusting their crawling algorithms to accommodate new coding standards and malicious threats (if that's what they've done).

Thanks again for your help.

-Dave

Re: How do I change the website URL on the System Setup Page?

I've updated the patch (see here for details) to include the fix for the Open Graph tags scheme (http:// vs https://).

Re: How do I change the website URL on the System Setup Page?

That's great!  It's impressive that you have taken it upon yourself to produce a patch to fix newly discovered issues and keep the code compatible with PHP updates.  On top of that, anyone who uses Showkase can get access to the patch without having to pay for additional support.  That I can still get an update 9 years after I bought the software is phenomenal.

Thanks for all the effort and quick response!

-Dave

Re: How do I change the website URL on the System Setup Page?

No worries!
It's a shame I can't fix the Google vs <noscript> issue as easily.