Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion

Sitemap works locally but not when published live on server?

I have created a sitemap for my website is I have placed in the root directory of my site. This works fine locally when I open it up, however when I try to publish it on my live server I get a 403 error message saying "not found" I don't understand why this is doing this? Could someone assist me with what I am doing wrong?


3 Answers

Joe Ainsworth
Joe Ainsworth
13,588 Points

Verify that the file is uploaded on to your web server in the root directory.

If you still receive this message then you may need to change the permissions on the file so it can be read by all users. Dependent upon your FTP programme you can usually right click the file then select 'Permissions'

Your folders should be set to 755 and pages 644 or 700.

This worked! Thank you very much