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! While you're at it, check out some resources Treehouse students have shared here.
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 trialAdam Garcia
2,730 PointsIf developing web pages locally using 'document relative paths', do links still work after uploading to web server?
Does web server understand document relative paths, or should you change them to 'root relative paths before uploading or running on web server?
1 Answer
Rich Donnellan
Treehouse Moderator 27,696 PointsIt's possible (depending on server file structuring), but it'd be best/safer to convert to (root) relative paths.
You can also try setting the <base>
to the help if you don't want to convert all of the paths. Check out this blog post for an example.