The rss.xml file is in the public folder.

Can I open it through the URL?

Route::get('/rss', function () { return redirect('/public/Rss.xml'); }); 

and

 Route::get('/rss', function () { return redirect('/../public/Rss.xml'); }); 

don't pass

The link seems to go, but nothing opens .. enter image description here

    1 answer 1

    public is the "main" directory? Or is the file in public\public ? Try to specify a route without public .

     return redirect('/rss.xml'); 
    • Yes, it worked. Thank you very much! - Vasilisa Ivanova