Article 4R4JR Wordpress mangles all URLs after being moved to new server

Wordpress mangles all URLs after being moved to new server

by
rylan76
from LinuxQuestions.org on (#4R4JR)
Hi all

I have a Wordpress site on my server 192.168.0.1 for testing purposes.

Only the base HTML renders without images.

On examining source, I can see why: all URLs are severely mangled. Instead of referencing

Code:http://192.168.0.1/...to find .js, .jpg, etc. files, Wordpress is using

Code:http://192.168.0.1192.168.0.1/...or even

Code:http://192.168.0.1192.168.0.1192.168.0.1/...Why is WordPress repeating the base URL twice (or sometimes thrice) for all http links it renders?

This is after Wordpress was moved from my live to my testing server by updating siteurl and home in wp_options and editing wp_config.php to reflect same.

I want to just set up a testing server where I can test upgrades, as PHP 7.2 completely breaks my plugin mix and I need to test / debug first before rolling out on live.

But I cannot get my WP instance to run at all on my testing server due to this "url mangling" taking place.

(My admin backend is also broken, cannot log into it as WP also rewrites its 192.168.0.1/wp-admin/index.php URL into 192.168.0.1192.168.0.1/wp-admin/index.php, which doesn't exist / is invalid.)

I have already disabled .htaccess, but cannot edit permalink settings in the normal manner as the back-end of the Wordpress instance is also inaccessible due to the URLs being rewritten into junk, as indicated above.

ANY ideas or suggestions appreciated!

Thx

Stefanlatest?d=yIl2AUoC8zA latest?i=KEWOtELYOic:uGNjpQnxYhA:F7zBnMy latest?i=KEWOtELYOic:uGNjpQnxYhA:V_sGLiP latest?d=qj6IDK7rITs latest?i=KEWOtELYOic:uGNjpQnxYhA:gIN9vFwKEWOtELYOic
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments