
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(); ?>
Sửa lỗi url trong sitemap (đang đọc)
- BBcode:
- Markdown:
Tiếng Việt
English
中文
Français
العربية
עברית
Русский
Українська
Bahasa Indonesia
हिंदी
日本語
ภาษาไทย