How to point different domain names to the same wordpress directory in directadmin ?

innovative

New member
Joined
Jul 30, 2021
Messages
2
I am new to directadmin and new to this forum. i have search the forum, so far I can't find the answer or solution yet to this question. In case I missed or if there is any expert who can share some lights, it will be much appreciated.

in my hosting account, i have 2 domain names added as a new domain in directadmin under "domain management" :
(1) 1.com installed with wordpress
(2) 1.com and 2.com have MX record point to google workspace (email handle by google server)
(3) Question : how to setup 2.com to point to the same directory of 1.com's wordpress folder in directadmin so that when people visit 2.com, the URL stay as 2.com but provide the content of 1.com ?
====
what i have tried so far :
(1) remove 2.com as a domain in direct admin (if i don't do this, it will not allow me to add to domain pointers
(2) i tried setting up using Domain Pointers (tick Alias), add 2.com
(3) when i visit 2.com, it will end up to 1.com (redirect itself)

Question:
(1) I am not sure where goes wrong and why it get redirect itself
(2) if i don't add 2.com as a domain in DA, I can't set up the MX record, what's the solution ?
 
all ok with alias, but you have redirect due to wordpress config, in WP admin an in it's DB there are one domain name set. check WP forum how to configure few names for one website.
 
Back
Top