Pages

Showing posts with label mapping domain. Show all posts
Showing posts with label mapping domain. Show all posts

Monday, May 12, 2014

Mapping multiple domains to wordpress

If you want to mapping multiple domains to one blog than you have to follow below procedure:

1. Point all domains nameserver(DNS) from domain account settings.
2. Than write below code in "wp-config.php" file after "table_prefix" code:

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

- Now, go to the wordpress admin panel >> General >> Settings. Here, you can see "WordPress Address (URL)" and "Site Address (URL)" both are disabled. It means your wordpress is ready for multiple domains.