• I was trying to duplicate a client’s wordpress site in a testing folder, to be able to start redesigning it. See below for exact steps. The duplicated install mostly works. However, some pages in the navigation menu still point to the old install instead of the new one.

    Looking into the source code, I see that the .css file and .js files still point to the old URL. This might be causing the pages to point to the old URL, I just don’t know how to fix it.

    For reference, please see:
    https://testing.starsintheclassics.org (see that some of the menu items link to pages within https://www.starsintheclassics.org)

    Here is what I did:

    1. I exported the database
    2. did backup of all files via ftp
    3. did find/replace in .sql file
    4. imported .sql file into newly created database
    5. rewrote wp-config file to connect to new database
    6. uploaded all files into testing folder

    I also installed the Velvet Blues Update URLs plugin and ran it, and it seemed all URLs had been changed.

    What do I need to fix so the new WP install points to .css and .js files in new URL, not back to the old on.

    Any other ideas what could be causing the issues?

    Thanks much!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Did you change urls in Settings>>>>>General to your test site as looks like your home page is still pointing to your old domain name https://www.starsintheclassics.org

    Thread Starter jana11

    (@jana11)

    Yes, I did change the URLS in Settings > General. If you look at the menu items at the end of the list (Performer / Links / Contact), they in fact link to pages on the new URL. However, the other menu links don’t. I think it might have to do with something the plugins do, and .js files linking back to the old URL.

    Thanks.

    Are you using two separate databases for two installs.
    As I see all links pointing https://starsintheclassics.org

    Thread Starter jana11

    (@jana11)

    Yes, I have two different databases. If you look at menu links: Performer, Contact, Links they are linking to the new URL (https://testing.starsintheclassics.org)

    1、Installation “Velvet Blues Update URLs” Plug-in
    2、Replace all the old links
    and if you familiar with mysql, Direct access to the database Execution SQL:

    UPDATE wp_options SET option_value = replace(option_value, ‘oldurl’, ‘newurl’) WHERE option_name = ‘home’ OR option_name = ‘siteurl’;
    UPDATE wp_posts SET post_content = replace(post_content, ‘oldurl’, ‘newurl’);
    UPDATE wp_posts SET guid = replace(guid, ‘oldurl’, ‘newurl’);
    UPDATE wp_comments SET comment_author_url = replace( comment_author_url, ‘oldurl’, ‘newurl’ ) ;
    UPDATE wp_comments SET comment_content = replace( comment_content, ‘oldurl’, ‘newurl’ ) ;
    UPDATE wp_posts SET pinged = replace( pinged, ‘oldurl’, ‘newurl’ );

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘some pages pointing to old URL after moving WordPress’ is closed to new replies.