Mercurial > SimpleWebPresenter
changeset 122:74c22a8dd38f
Support for both http and https for Sitemap
| author | Tom Fredrik Blenning Klaussen <bfg@bfgconsult.no> |
|---|---|
| date | Thu, 28 Dec 2017 18:49:07 +0100 |
| parents | e3f97bbf12f3 |
| children | 8678ce12d533 |
| files | Sitemap.inc |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Sitemap.inc Thu Dec 28 18:44:28 2017 +0100 +++ b/Sitemap.inc Thu Dec 28 18:49:07 2017 +0100 @@ -124,7 +124,7 @@ http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd"> '; - $base = 'http://' . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; + $base = $_SERVER["REQUEST_SCHEME"] ."://". $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; $l = strrpos($base, '/'); if ($l) $base = substr($base, 0, $l);
