• Resolved Lmalts

    (@lmalts)


    Hi! I have a blog fellworld.ru created on Russian hosting. Later I’ve decided to create the similar blog with .com domain on Bluehost. New blog feelworldevent.com – I imported my wordpress blog from fellworld.ru via Import/Export tool. Site was working properly, until I decided to move it on my hosting from root folder /public_html to the folder /public_html/feelworldevent. Now feelworldevent.com still works, but when I try to login to admin page feelworldevent.com/wp-admin/ it redirects me to my first blog: http://feelworld.ru/wp-admin/upgrade.php?_wp_http_referer=%2Fwp-admin%2F , saying that database is updated and no update is required anymore… Thus I can not login to my admin page at all. I contacted Bluehost support, and even they could not find any solution.
    What can I do to be able to access feelworldevent.com admin page?

    Thank you in advance,
    Ludmila

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try adding this to your wp_config.php just after define ('WPLANG', '');

    define('WP_SITEURL', 'http://www.feelworldevent.com/feelworldevent');
    define('WP_HOME', 'http://www.feelworldevent.com ');
    Thread Starter Lmalts

    (@lmalts)

    Thank you, I tried, and now, tring to go to admin page http://www.feelworldevent.com/wp-admin/ I get error:
    Parse error: syntax error, unexpected $end in /home2/feelworl/public_html/wp-config.php on line 1

    Perhaps you can copy and paste the amended bit of code with a couple of lines either side (don’t copy the whole of wp-config as it will give out your database details!)

    Thread Starter Lmalts

    (@lmalts)

    Nathan, thank you for your help, here is core from my wp-config file (I removed my databse name, username and password):

    define('DB_NAME', 'my database name');
    
    /** MySQL database username */
    
    define('DB_USER', 'my database user name');
    
    /** MySQL database password */
    
    define('DB_PASSWORD', 'my database pasword');
    
    /** MySQL hostname */
    
    define('DB_HOST', 'localhost');
    
    /** Database Charset to use in creating database tables. */
    
    define('DB_CHARSET', 'utf8');
    
    /** The Database Collate type. Don't change this if in doubt. */
    
    define('DB_COLLATE', '');
    
    /**#@+
    
     * Authentication Unique Keys and Salts.
    
     *
    
     * Change these to different unique phrases!
    
     * You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
    
     * You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
    
     *
    
     * @since 2.6.0
    
     */
    
    define('AUTH_KEY',         'put your unique phrase here');
    
    define('SECURE_AUTH_KEY',  'put your unique phrase here');
    
    define('LOGGED_IN_KEY',    'put your unique phrase here');
    
    define('NONCE_KEY',        'put your unique phrase here');
    
    define('AUTH_SALT',        'put your unique phrase here');
    
    define('SECURE_AUTH_SALT', 'put your unique phrase here');
    
    define('LOGGED_IN_SALT',   'put your unique phrase here');
    
    define('NONCE_SALT',       'put your unique phrase here');
    
    /**#@-*/
    
    /**
    
     * WordPress Database Table prefix.
    
     *
    
     * You can have multiple installations in one database if you give each a unique
    
     * prefix. Only numbers, letters, and underscores please!
    
     */
    
    $table_prefix  = 'wp_';
    
    /**
    
     * WordPress Localized Language, defaults to English.
    
     *
    
     * Change this to localize WordPress.  A corresponding MO file for the chosen
    
     * language must be installed to wp-content/languages. For example, install
    
     * de.mo to wp-content/languages and set WPLANG to 'de' to enable German
    
     * language support.
    
     */
    
    define ('WPLANG', '');
    define('WP_SITEURL', 'http://www.feelworldevent.com/feelworldevent');
    define('WP_HOME', 'http://www.feelworldevent.com ');
    
    /**
    
     * For developers: WordPress debugging mode.
    
     *
    
     * Change this to true to enable the display of notices during development.
    
     * It is strongly recommended that plugin and theme developers use WP_DEBUG
    
     * in their development environments.
    
     */
    
    define('WP_DEBUG', false);
    
    /* That's all, stop editing! Happy blogging. */
    
    /** Absolute path to the WordPress directory. */
    
    if ( !defined('ABSPATH') )
    
    	define('ABSPATH', dirname(__FILE__) . '/');
    
    /** Sets up WordPress vars and included files. */
    
    require_once(ABSPATH . 'wp-settings.php');

    Now I still get “Parse error: syntax error, unexpected $end in /home2/feelworl/public_html/wp-config.php on line 1” on my admin page, both with code you adviced to add, and without it.

    I’m not sure that I know what that would be if it happens with or without it. I did notice an extra space in define('WP_HOME', 'http://www.feelworldevent.com '); before the last ‘ but I’m not sure that is it.

    Going back to the beginning, when you said that you moved your blog, exactly what did you do?

    Thread Starter Lmalts

    (@lmalts)

    Nathan, thanks for help!
    I just re-loaded my backup copy of the site and my mackup SQL database.
    Now it works!

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Problems with database: redirect to old site’ is closed to new replies.