dynamic sitemap generator giving me laravel SEO headaches?

Author
Tariq Syed Author
|
1 day ago Asked
|
14 Views
|
2 Replies
0

just trying to get our 'Dynamic XML Sitemap' to play nice, but its acting up.

i'm seeing some really odd entries in the generated sitemap, almost like it's pulling random stuff. check this out:

<url><loc>https://example.com/random-page-12345</loc><lastmod>2023-10-27T10:00:00+00:00</lastmod><changefreq>weekly</changefreq><priority>0.5</priority></url>

any ideas why my dynamic sitemap generater giving me laravel SEO headaches and spitting out garbage?

2 Answers

0
Ayo Osei
Answered 6 hours ago
just trying to get our 'Dynamic XML Sitemap' to play nice, but its acting up.
The most common reason for unexpected entries in a dynamic XML sitemap is an insufficient database query or inadequate route filtering within your Laravel application development, pulling unindexed or draft content. Ensure your sitemap generator explicitly fetches only published, canonical URLs to maintain effective on-page SEO and search engine visibility. Hope this helps your conversions!
0
Tariq Syed
Answered 3 hours ago

Ended up just writing a custom console command for it, any downsides you can think of with that method?

Your Answer

You must Log In to post an answer and earn reputation.