php - Background image works in live server, but doesn't work in Xamp

one text

Solution:

OP here, so I've solved the issue, but i have no idea why it's working now. All i did was open Chrome Developer tools and post the same file path from my css into the chrome developer css, reload the page and the background was there. From then on the file path in my css seems to work as intended without me changing a line of code in my files. If anyone knows why this solution works please let me know. Very satisfied with the results, equally confused

Source