First off, if this question is redundant I apologize. I searched for topics like it but found no direct answer.
I constantly run into the same issue everytime I start a new project using XAMPP. The issue is when I'm done with the project, I have to go back into the SQL and the PHP files to rename all instances of my C: drive and all http://localhost/ references to /, as that will be the live server root.
Is there an known way to define some kind of virtual root for each project? That way I could just take the sites I've developed here locally and depoly them directly to a live server root with out changing any paths in the files or SQL? Ideally, each new project folder that I create on my computer should act as a server root.
Any advise would be greatly appreciated.