I have a problem that when I add a sitemap to GSC it is shown as not valid.
When I check the file, I see the following error: Incorrect http header content-type: "text/html; charset=UTF-8" (expected: "application/xml")

How to solve the problem?
We here also!
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Why have you blanked out your URL? Your website is live on the Internet, it's hardly a secret?
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
its fine.drag84 wrote: ↑Fri Jul 19, 2024 4:19 pmI use the opencart module for sitemap harvesting. It generates the file but you can't add it to the GSC.
XML file: https://skaiciumenas.lt/index.php?route ... le_sitemap
OC version: 3.0.3.8
I check the validity of the XML file here: https://www.xml-sitemaps.com/validate-xml-sitemap.html and I get an error: Incorrect http header content-type: "" (expected: "application/xml")
how to solve the problem?
not working - GSC shows an error. Failed to read sitemapnonnedelectari wrote: ↑Fri Jul 19, 2024 8:26 pmits fine.drag84 wrote: ↑Fri Jul 19, 2024 4:19 pmI use the opencart module for sitemap harvesting. It generates the file but you can't add it to the GSC.
XML file: https://skaiciumenas.lt/index.php?route ... le_sitemap
OC version: 3.0.3.8
I check the validity of the XML file here: https://www.xml-sitemaps.com/validate-xml-sitemap.html and I get an error: Incorrect http header content-type: "" (expected: "application/xml")
how to solve the problem?
You should use a sitemap extension - Google changes the spec too frequently for the OC core to keep up.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
which module do you recommend?paulfeakins wrote: ↑Tue Jul 23, 2024 7:10 pmYou should use a sitemap extension - Google changes the spec too frequently for the OC core to keep up.
For the Google Merchant feed we recommend the one by the developer, UKSB. I'm not sure if they do one for just the normal sitemap, but here's our list of extension developers we consider write good code: https://www.antropy.co.uk/blog/good-qua ... xtensions/drag84 wrote: ↑Wed Jul 24, 2024 3:51 pmwhich module do you recommend?paulfeakins wrote: ↑Tue Jul 23, 2024 7:10 pmYou should use a sitemap extension - Google changes the spec too frequently for the OC core to keep up.
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk
Users browsing this forum: No registered users and 9 guests