Site URL/link structure incorrect after duplication
-
I’m presently wrestling with a site that I moved over with Duplicator not long ago. I thought everything had gone smoothly, but apparently, something in the URL structure did not go so well.
Presently, the site’s domain name is duplicated if placed in wp-config as intended. E.g., if wp-config reads:
define(‘WP_SITEURL’, ‘https://mysitename.com’ . $_SERVER[‘HTTP_HOST’]);
define(‘WP_HOME’, ‘https://mysitename.com’ . $_SERVER[‘HTTP_HOST’]);…then URL paths will read “https://mysitename.com/mysitename.com” (and hardly anything will work).
Now, if wp-config reads:
define(‘WP_SITEURL’, ‘https://’ . $_SERVER[‘HTTP_HOST’]);
define(‘WP_HOME’, ‘https://’ . $_SERVER[‘HTTP_HOST’]);…then everything will work fine, because “mysitename.com” is being written onto the URL somewhere in a .php or database file.
I am not convinced this is how it was intended to work, for images are rendered with URLs such as the following:
http:/wp-content/uploads/2015/01/pageLogo.png
…as opposed to:
https://mysitename.com/wp-content/uploads/2015/01/pageLogo.pngThis includes the images that are coded into my theme through the Theme Options.
Any ideas? Anything else I can provide to pinpoint the problem – just let me know.
-Kurt
- The topic ‘Site URL/link structure incorrect after duplication’ is closed to new replies.