Skip to content

Commit

Permalink
use https
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisxrow committed May 16, 2017
1 parent b0159b8 commit 05d461b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/sitemaps/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function addFiles( &$index, $dirname, $dirArray )
{
$date = new xrowSitemapItemModified();
$date->date = new DateTime( "@" . $file->mtime() );
$loc = 'http://' . $_SERVER['HTTP_HOST'] . '/' . $file->name();
$loc = 'https://' . $_SERVER['HTTP_HOST'] . '/' . $file->name();
if ( !in_array( $loc, $GLOBALS['loc'] ) )
{
$GLOBALS['loc'][] = $loc;
Expand Down
2 changes: 1 addition & 1 deletion modules/sitemaps/robots.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
{
$robotspath = 'robots.txt';
}
$content = "Sitemap: http://" . $_SERVER['HTTP_HOST'] . "/sitemaps/index\n";
$content = "Sitemap: https://" . $_SERVER['HTTP_HOST'] . "/sitemaps/index\n";

if ( file_exists( $robotspath ) )
{
Expand Down

0 comments on commit 05d461b

Please sign in to comment.