A WordPress site with more than one domain name / Parked domains

You can use a predefined constants that points to site URL.

(from Codex)

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

Small example

define('WP_SITEURL', 'http://'.$_SERVER['HTTP_HOST']);
define('WP_HOME',    'http://'.$_SERVER['HTTP_HOST']); 

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