Support » Fixing WordPress » Changing wordpress with a new URL

  • Hi all,

    I have just changed my wordpress site:
    from http://mysite1.me
    to http://mysite2.me
    in the same web hosting server.

    the installation folder has also been changed:
    from /home1/acct1/public_html/jmy
    to /home1/acct1/mysite2.me/jmy

    As wordpress is still in the same web server, database name, database user name and password remain unchanged, and I don’t need to change any settings in “wp-config.php”

    however, when accessing: “http://mysite2.me/jmy”, the following ERROR is displayed:
    ========================================================================
    Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

    Fatal error: Unknown: Failed opening required ‘/home1/acct1/public_html/jmy/wordfence-waf.php’ (include_path=’.:/opt/php54/lib/php’) in Unknown on line 0

    ==========================================================

    It seems that there is a setting which store the installation folder and I have not updated it yet, so I added the following line to “wp-config.php”:
    define( ‘WP_SITEURL’, ‘http://mysite2.me/jmy’ );
    -> according to: https://codex.wordpress.org/Editing_wp-config.php

    but….
    no luck, the same error is displayed.

    So, which file should I work on to update the installation folder?

    Thanks for any kind of help!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changing wordpress with a new URL’ is closed to new replies.