Fix google sitemap xml not found in cs-cart

Fix google sitemap xml not found in cs-cart
Google xmlsitemap 404 error

If the google sitemap add-on is turned on but the url https://example.com/index.php?dispatch = xmlsitemap.view or /sitemap.xml error returned 404 error. Replace example.com = your website.
IF Chek url: /var/files/1/google_sitemap/sitemap.xml ok
We fix as follows (I'm using cs-cart version 4.7.2)
Open file /app/addons/google_sitemap/func.php

find: $sitemap_path = fn_get_files_dir_path(false) . 'google_sitemap/';
and replace: $sitemap_path = fn_get_files_dir_path(false) . '1/google_sitemap/';
find: $filename = fn_get_files_dir_path() . 'google_sitemap/sitemap' . $file_counter . '.xml';
and replace: $filename = fn_get_files_dir_path() . '1/google_sitemap/sitemap' . $file_counter . '.xml';

With 1STOREFRONT_ID

Save and goto add-on google sitemap "creat new sitemap"
Done.
Quảng cáo hiển thị ở đây

Nhận xét

Bạn được hoan nghênh chia sẻ ý tưởng của bạn với chúng tôi trong phần bình luận!

Archive

Biểu mẫu liên hệ

Gửi