Sửa lỗi url trong sitemap

1. Tìm function current_url() trong biến class $home ở file /system/vendor/function.php, sửa thành:

function url()
{
    $protocol = ((!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] != 'off') || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://";
    $url = $protocol . $_SERVER['HTTP_HOST'];
    return $url;
}

function current_url()
{
    return self::url() . $_SERVER['REQUEST_URI'];
}


2. Mở file /template/sitemap.php, tìm:

<?php echo $http_host; ?>


Sửa thành:

<?php echo $home->url(); ?>

Danh sách chương

Download tập tin từ IPFS
Sửa lỗi url trong sitemap Đang đọc

Chia sẻ liên kết

Trang chủ Tìm kiếm Trò chuyện Đăng nhập