WordPress.org

Ready to get started?Download WordPress

Forums

Test site on different server (4 posts)

  1. darrent71
    Member
    Posted 2 years ago #

    I've been experiencing problems with my host with my WordPress sites running on Windows so in an attempt to resolve they set me up with an account on one of their Linux servers.

    Without changing DNS, I have FTP'd all relevant files across, changed the DB_HOST in wp_config.php so it's looking at the live domain and am browsing the test site via an IP address.

    Currently it's reporting errors and things like the nav are redirecting me to the live url. Does anyone know what I need to change so that the test site sees the IP address rather than the domain as the host? Thanks!

  2. ce_kevinw
    Member
    Posted 2 years ago #

    Hi darrent71,

    You'll want to try editing your wp-config file, and using your IP instead of the domain for the following values:

    define('WP_HOME','http://example.com');
    define('WP_SITEURL','http://example.com');

    Please see for more help with updating your wp-cofing file: http://codex.wordpress.org/Editing_wp-config.php

  3. esmi
    Forum Moderator
    Posted 2 years ago #

  4. darrent71
    Member
    Posted 2 years ago #

    Thanks you so much ce_kevinw and esmi too for the link - got sorted now!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.