• My ISP decide it had to move my WordPress site of many years to a new server and they’ve cocked it up.

    I’ve got given a MySQL .sql file as a backup and all the files via FTP.

    But whilst the front page looks ok, none of the links work.

    I get Error occurred: 404 – not found when attempting to see other pages.

    I installed it originally in /wordpress and in the root of my domain is a file with a index.php

    Oh and I can’t log in as it claims “Error occurred: 404 – not found”.

    Any clue to what’s gone wrong with it?

    Is there some path that’s changed from the original server to this new one that is in the .sql file as I’ve tried a search for it and can’t see it there.

    Is it hardwired into one of my wordpress files?

    Can someone give me a pointer on where to look? I’d appreciate it.

    https://stuarthalliday.com/

    • This topic was modified 7 years, 10 months ago by quatermass.
Viewing 5 replies - 1 through 5 (of 5 total)
  • lisa

    (@contentiskey)

    a few suggestions:

    check to see what settings in the database for your site
    generally you can get to the database in PHPMYADMIN area for webhosting company.
    look in the WP_OPTIONS table in the database to see that all is correct

    via FTP
    check your wp-config file to be sure all setting are correct in there too
    check to see that you have all of the necessary WordPress files and folders
    be sure you have at least one theme with all necessary files

    • This reply was modified 7 years, 10 months ago by lisa.

    Hi Stuart,

    Are you sure the directory structure is the same as on the old server. You have a lot of 404 errors for necessary files like your style.css. The site loading is looking for it in https://stuarthalliday.com/wp-content/themes/7color/style.css but it produces a 404. Is that where it is on your server, or is there perhaps a subfolder?

    In your database, via phpmyadmin, as mentioned above by Lisa, you can look in the wp_options table for the siteurl and homeurl fields. These need to correspond to your server setup.

    Hunch is that you may have had WordPress installed in a subfolder on the old server, and so you’ll need to do the same on the new server.

    Thread Starter quatermass

    (@quatermass)

    Hi Lisa, thanks for replying.

    Unfortunately I don’t know what the WP_Options table should look like. It’s the same as when it was working if that’s any help?

    As for the wp_config file, yes that’s in place in a subfolder of the root URL called wordpress. It has the new details as I use in PHPadmin.

    Yes wordpress is installed into the usual subfolder /wordpress of the url exactly as it was in the old.

    Thread Starter quatermass

    (@quatermass)

    hi Andy, yes it’s the same structure as the old one.

    I don’t know why it’s going to :

    https://stuarthalliday.com/wp-content/themes/7color/style.css

    as that file is in :

    https://stuarthalliday.com/wordpress/wp-content/themes/7color/style.css

    This .htaccess file is in the root of the URL.

    It reads.

    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    But it doesn’t mean much to me.
    But I guess it remaps paths and files?

    The index.php which is in the root reads:

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '/wordpress/wp-blog-header.php' );
    

    I’m really at a loss… ??

    Thread Starter quatermass

    (@quatermass)

    Discovered today that the WordPress admin page with the permlinks has the wrong setting.

    I use fixed named links and it was set to ?p= type.

    I altered it to named links. But any edited page still shows full named links.
    So the database must be ok perhaps?

    Any idea how one corrects this?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘ISP moved my WordPress and it’s broken.’ is closed to new replies.