WordPress on a local machine redirecting to online url

Open up your wp-config.php file

Try adding the following to it:

define( 'WP_SITEURL', 'http://localhost/your_wordpress_folder' );  
define( 'WP_HOME',    'http://localhost/your_wordpress_folder' );

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)