main

Tips & Tricks

Multiple Domain for Single WordPress Installation

May 11, 2015 — by NeoTech0

I’ve 2 domains (mohdneotech.com & mohdnordin.com) and wanted to point those 2 to the same single wordpress installation. Here’s what I did.

1. Point both domains to same public IP at DNS A record.
2. Just add these 2 lines into wp-config.php

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

That’s all =)

Leave a Reply

Your email address will not be published. Required fields are marked *