Quick answer
Each <loc> must be a valid absolute URL.
Sitemap Invalid URL Format
Each <loc> must be a valid absolute URL. Relative or malformed URLs cause errors.
Common causes
- Relative URL in <loc>.
- Missing protocol or wrong format.
How to fix
- Use full URL: https://example.com/path.
- Validate URL format.
FAQ
- Relative URL ok?
- No; use absolute.
- Protocol?
- https (or http).
Fix it now
Try in validator (prefill this example)