xoops forums

stonez

Just popping in
Posted on: 3/26 15:57
stonez
stonez (Show more)
Just popping in
Posts: 16
Since: 2002/9/29
#1

How to set xoAppUrl & xoImgUrl from http to https?

Hi all,
How do I change xoAppUrl & xoImgUrl from http to https?

I recently upgraded my Xoops from old version to 2.5.9
During the upgrade, I also made my site from http to https.

However, I got this error message:

Mixed Content: The page at 'https://ww2.mysite.com/modules/tadgallery/dictionary.php' was loaded over HTTPS, but requested an insecure stylesheet 'http://www.mysite.com/xoops.css'. This request has been blocked; the content must be served over HTTPS.

It seems I need to change /theme/mytheme/theme.php following lines, but I don't know where to setup xoAppUrl & xoImgUrl.

<!-- Favicon -->
<link rel="shortcut icon" type="image/ico" href="<{xoImgUrl icons/favicon.ico}>" />
<link rel="icon" type="image/png" href="<{xoImgUrl icons/favicon.png}>" />
<!-- Sheet Css -->
<link rel="stylesheet" type="text/css" media="all" title="Style sheet" href="<{xoAppUrl xoops.css}>" />
<link rel="stylesheet" type="text/css" media="all" title="Style sheet" href="<{xoImgUrl style.css}>" />

Please shin me some lights here...

Thank you!

goffy

Quite a regular
Posted on: 3/26 21:35
goffy
goffy (Show more)
Quite a regular
Posts: 366
Since: 2010/12/27
#2

Re: How to set xoAppUrl & xoImgUrl from http to https?

Hi

both are using the real url, if your website is https then it will provide https://....

xoImgUrl can't be the problem, because this goes to the directory of your theme, e.g. if you are using xbootstrap then it gives you back https://mywebsite.com/themes/xbootstrap/

I also don't think that xoAppUrl is the reason, because this should provide https://mywebsite.com

please check all your templates and blocks, maybe you have somewhere hardcoded link to http://www.mysite.com/xoops.css'

stonez

Just popping in
Posted on: 3/26 23:57
stonez
stonez (Show more)
Just popping in
Posts: 16
Since: 2002/9/29
#3

Re: How to set xoAppUrl & xoImgUrl from http to https?

Thank you, let me try to see have these settings.... :)