Until now, I used to put absolute URLs in my included PHP files. For example in navbar.php, with a link to the services page: href="http://domain.com/services.php"
Since navbar.php is included in different directories, I had to use an absolute URL.
Problem is that when I'm testing the site locally using wamp server, this points me to the live site, which is not what I want.
What is the best practice for URLs in included PHP files?
I'm looking for something like 'root/thefile.php', where root can be either the domain (when the site is live) or localhost (when building and testing the site locally).