LaraBABA's avatar

How to generate Sitemap in the public_html

Hi all,

I am using this package: https://github.com/spatie/laravel-sitemap

As my laravel 10 app is installed below the public_html, I would like to know if there is a way to generate the sitemap.xml inside the public_html.

Thanks

0 likes
2 replies
Snapey's avatar
Snapey
Best Answer
Level 122

The docs imply you can put it at any path you like.

Have you got public symlinked to public_html ?

LaraBABA's avatar

Thanks Snapey, I changed the symlink from the public_html to the laravel/public below the public_html and it worked.

Please or to participate in this conversation.