WordPress.org

Ready to get started?Download WordPress

Forums

Redirecting WordPress website to another server with the same domain (4 posts)

  1. michconstantino
    Member
    Posted 1 year ago #

    We have 2 servers in our company, WEBSERVER 1 and WEBSERVER 2 hosting our company website. WEBSERVER 1 gives an error establishing a database connection while WEBSERVER 2 is successfully running the website. How do I redirect the website with the same domain to access the web through WEBSERVER 2.

  2. cdukes
    Member
    Posted 1 year ago #

    I believe you'll need to point your DNS's A record to the IP address of #2.

  3. michconstantino
    Member
    Posted 1 year ago #

    Should I place the IP address here:

    define('DB_HOST', 'localhost');

    as

    define('DB_HOST', <ip address>);

  4. cdukes
    Member
    Posted 1 year ago #

    Noooo. This has to be done in DNS, not WP-Config.

Topic Closed

This topic has been closed to new replies.

About this Topic