Local urls vs Remote server urls
I've looked everywhere for a solution, but I can't seem to find an answer.
I'm designing a website on my laptop running on my local server. When I include files within my code I must specify the root of my local server. When I upload the files to my web host the root is completely different. How do I fix my urls so that no matter where I'm accessing my code, whether locally or through a remote server, the url takes me where I need to go. I have something set up right now, but it seems sloppy.
I hope I explained it well.