Point domain to different webhost’s subdirectory wordpress

All links in the content was saved in the databases, pure strings. If you have change change the settings of the wordpress install to an new domain, then it is important that you change also the links inside the content. This is possible with a sql statement or also with plugins and helper.

  1. WP Plugin
  2. Helper

If you will change the settings url from the wp install, then is it a easy way to do this via constant inside the wp-config.php.

// Home URL of your WordPress.
define( 'WP_SITEURL', 'http://localhost/wpbeta' );
// URL to the WordPress root dir.
define( 'WP_HOME', 'http://localhost/wpbeta' );

error code: 523