Viewing 6 replies - 1 through 6 (of 6 total)
  • We are hosted through bluehost. Bluehost made the switch. I changed the Site URL using the edit webconfig steps…

    Does that mean you used these in wp-config.php…

    define('WP_HOME','https://example.com');
    define('WP_SITEURL','https://example.com');

    ??

    I’m guessing it has something to do with relative and absolute URLs…

    Yes, and you might need to find out specifically what BlueHost did. My guess is that they un-assigned your previous domain name and then assigned the new one to your WordPress and then re-directed your previous domain to the new one, but they might have tried something else. Many of the Support Techs there are familiar with WordPress, but their actual jobs are related only to the servers and not all of them know WordPress equally well. So, I would first find out (at cPanel) exactly which domain is assigned and pointed and/or re-directed to where, and then also be certain the entries under cPanel’s “Subdomains” do not out-number what you actually have.

    Thread Starter lanijade

    (@lanijade)

    Hi there, yes, I did add the two lines you mention to the wpconfig.php file. In addition, after I had done this, the media library URLs were incorrect so I followed Jason’s steps in this post https://www.ads-software.com/support/topic/site-url-update-in-media-library?replies=21 accessing the database as follows and making the changes to the site url and home values.
    Access your database via phpMyAdmin and following the guide at https://codex.www.ads-software.com/Changing_The_Site_URL#Changing_the_URL_directly_in_the_database make sure that both the siteurl and home values are set to https://shemakesmagic.com

    This fixed the media library issue.

    What do you mean when you say “be certain the entires under cpanel subdomains do not out-number what you actually have”?

    as far as the domain set up goes, I can see that shemakesmagic.com has been set as the primary domain and thelittlegreenhouse.net is set as a parked domain. Is this what you mean?
    There is also a redirect set up that goes from thelittlegreenhouse.net to shemakesmagic.com.

    It looks like you might have everything fixed, yes? If so, congrats!

    What do you mean when you say “be certain the entries under cpanel subdomains do not out-number what you actually have”?

    When a domain gets un-assigned at BlueHost, that action does not remove its entry at “Subdomains” in cPanel…and then a new one is made there when a domain is re-assigned as an Add-On. Any left-behinds you might have there might be irrelevant, but I keep things like that cleaned up.

    I can see shemakesmagic.com has been set as the primary domain and thelittlegreenhouse.net is set as a parked domain. Is this what you mean?

    I have never left one parked, so I do not know what that looks like.

    There is also a redirect set up that goes from thelittlegreenhouse.net to shemakesmagic.com.

    That all sounds right to me!

    Thread Starter lanijade

    (@lanijade)

    Hi there,

    No sorry, the issue isn’t fixed. I was just explaining to you the process I went through after they changed the domain over. I’m still having the issue where, when previewing a post or page from wp-admin the URL gets shemakesmagic.com/wp-admin added to the URL returning a 401 page. for example https://shemakesmagic/wp-admin/shemakesmagic.com/pagename

    I’m also having the issue when adding hyperlinks to pages and posts using the search function as described right at the start of this post – So for example, let’s say I edit the page https://shemakesmagic.com/about and I add a hyperlink into the page to https://shemakesmagic.com/freebies-goodies/. The hyperlink is added as shemakesmagic.com/freebies-goodies (no https://) So then when I click on the link, it actually tries to go to https://shemakesmagic.com/about/shemakesmagic.com/freebies-goodies/

    …yes, I did add the two lines you mention to the wpconfig.php file.

    Did you then go back and remove or disable those two lines and then go to Dashboard > Settings > General once again to check and to save the results? As I understand things, saving the results there is the final part of updating the database. If you had done all of that and then along with the other things you have done, your problem is beyond my experience and hopefully someone else will jump in here and help you know what to do to get things straight.

    Thread Starter lanijade

    (@lanijade)

    Thanks so much! I did go back and remove these two lines again (I thought I had done that but perhaps I didn’t save the file after I made the changes). Anyway, all fixed! ??

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Issue with absolute and relative URLs since changing domain names’ is closed to new replies.