Localhost twice in WP intrapage URLs

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Localhost twice in WP intrapage URLs

Postby JonFleming » 01. June 2021 13:41

I have a brand new installation of XAMPP 7.4.19 on WIndows 10 Pro x64 20H2. I have been upgrading a friend’s WordPress site locally, and I have it working in WP 5.7.2.

The one remaining wackiness is that URLs for navigating between pages are broken. They have “localhost” in them twice. For example see https://i.imgur.com/PoDNE1v.png (if I insert it with img tags the right side gets cut off). The cursor is hovering over the “About <redacted>” menu button. Note in the HTML on the right the url associated with that button, “http://localhost/<redacted>/?page_id=2". But at the bottom left it shows where the button will actually take you; “http://localhost/localhost/<redacted>/?page_id=2" which of course doesn’t work.

The links attached to WordPress buttons work. For example, if I click the redacted blog name at the top left and pick “Dashboard”, it takes me to the dashboard.

I installed XAMPP manually from a zip file and don't remember doing anything to the configuration other than running setup_xampp.bat.
JonFleming
 
Posts: 1
Joined: 31. May 2021 23:23
XAMPP version: 7.4.19
Operating System: Windows 10 Pro x64

Re: Localhost twice in WP intrapage URLs

Postby Nobbie » 01. June 2021 20:27

Thats not an issue from Xampp. Do you think, that Xampps Apache inserts localhost to all URLs, in each application?? Its a plain WordPress issue, please ask in a WordPress forum.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 121 guests