Can anyone please help me?
Hi. I have tried using Console command to generate the sitemap.xml. It always generate the default sitemap.xml file.
` urlset xmlns=" http: //www.sitemaps.org/schemas/sitemap/0.9 " `
` xmlns:xhtml = " http: //www.w3.org/1999/xhtml "`
I then tried to use it manually in my routes in order to check whether there is a problem with console command.
It generated the same default xml again.
I thought there might be something wrong with my routes. I then added simple routes like.
Route::get('/', function() {
return view('welcome');
});
Route::get('/about', function() {
return view('welcome');
});
But still it generated that same default xml both from console command and from visiting a route.