WordPress.org

Ready to get started?Download WordPress

Forums

Moved site won't load external files (5 posts)

  1. Ryan Kanner
    Member
    Posted 1 year ago #

    I just moved one of my WordPress sites from one server to another and the site is not loading any of my js or stylesheets. I moved the site and pointed a domain at it. The site connects to the database and resolves in the browser, but the front end of the site won't load the stylesheets or js, and neither does the admin. The weird thing is that it loads the stylesheet for the login screen for the admin, but the rest of the admin only loads styles from colors-fresh.css. Anyone have a solution?

  2. cynnie88
    Member
    Posted 1 year ago #

    You can try changing the domain name in the wordpress settings, but you will probably still have problems. Unfortunately ou can't just move wordpress from one domain to another, it keeps references of your domain in the database. To completely migrate your site you will have to search and replace every instance of your old domain in the database.

  3. Ryan Kanner
    Member
    Posted 1 year ago #

    Even if I declare my new url in wp-config? with:

    define('WP_HOME','http://hbjournal.org');
    define('WP_SITEURL','http://hbjournal.org');
  4. Ryan Kanner
    Member
    Posted 1 year ago #

    You were right! did a search and replace, and that worked! Thanks!

  5. cynnie88
    Member
    Posted 1 year ago #

    Awesome.

Topic Closed

This topic has been closed to new replies.

About this Topic