I had a local host installation of my WordPress website on my computer using Desktop server that worked fine.
Desktop Server's php version became outdated and when googling, I discovered that that application is now a thing of the past.
I deleted that installation and tried to set up local hosting via both WAMP and then XAMPP.
With both of these installations, when I created a WordPress installation and then imported my existing live WordPress website database to it I end up with the following problem:
Background: Locally, in an example using xampp, I've placed the website in:
C:\xampp\htdocs\example.com.demo
After importing the database from my live website...
1) The backend of WordPress works fine. It uses URLs like:
localhost/example.com.demo/wp-admin/about.php
2) The front end of the website encounters a URL problem that's apparently associated with the "relative" linking I've used in my html anchors (like the form "../website-subdirectory/website-page.html")
The URL shown in the browser ends up being:
localhost/website-subdirectory/website-page.html
The "domain" portion of the URL is not included like it is in the backend of WordPress and this returns a Page Not Found error.
To work, the URL needs to be this form:
localhost/example.com.demo/website-subdirectory/website-page.html
This URL shows the page just fine.
And in fact, once I've typed in the correct URL form into the browser and the web page shows, then all relative linking (../) on that page works fine. The system now has the proper root (domain) info in mind.
What do I need to do to get the front end of WordPress to understand that the "example.com.demo" portion of the URL needs to be included when calling web pages?