Viewing 1 replies (of 1 total)
  • When you try to login, WordPress uses values for siteurl and homeurl that are set in the database. That’s why you’re being redirected.

    So, for development purposes, open your wp-config.php file on the temp site and add the following lines:

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

    Make sure to update URLs with the correct ones for your temp site. This will force WordPress to use them, instead of the ones in the database. This will NOT change database values. Deleting those 2 lines will go back to what’s in the database.

    If you’re changing site url from http://www.site.com/wordpress to http://www.site.com/, you will need to update this in your database. Ideally, in production, you don’t want to use those 2 constants I mentioned above. So you’ll need to update your database.

    I would recommend checking out this plugin when you’re ready to take your website live with the new domain: https://en-ca.wordpress.org/plugins/velvet-blues-update-urls/

    ^V

Viewing 1 replies (of 1 total)

The topic ‘Site Domain – How to edit?’ is closed to new replies.