WordPress Site Broken after Changing URL

I am currently working for a client who has hired other website designers in the past who have contributed but never finished the project. She wants a website at sheisbiddy.com but also had the domain name new.sheisbiddy.com which is the one that I began designing on. Last night I switched the URLs by deleted the site on the other name and change the URL on the new one. It worked fine until I tried to get into the site and a blank page came up saying “name ok”. I googled a solution, which was to add the following code to my theme directory (I backed up first but it was after the domain switch):

<?php
update_option('siteurl','http://sheisbiddy.com');
update_option('home','http://shisbiddy.com');
?>

It worked and I got in a deleted the code by now my site is MESSED up. Pictures aren’t showing up, the navigation had shifted and the magicline no longer shows up on the homepage, fonts have been reset, widgets stopped working… I checked my media library and some of the code and it seems to be fine so I don’t know what happened or what I should do but I’m freaking out.

Related posts

1 comment

  1. As I wrote here.
    Simple checklist for wordpress migration is:

    • edit database table wp-options and options siteurl and home there
    • edit wp-config.php (DB_NAME, DB_USER, DB_PASSWORD a DB_HOST)
    • use this replace script to replace all other occurences of absolute paths for relative path, it is enough to replace your old site name http://yoursite.com with an “/”
    • also you want to regenerate static links, in Settings menu go to permalinks and just click on save

Comments are closed.