dannygoh Verified User Joined Feb 9, 2004 Messages 391 Location Malaysia Aug 25, 2008 #1 Hello, My main domain is abc.com in DirectAdmin. I have another domain xyz.com and when people goto xyz.com, it will redirect to sub.abc.com. How can I achieve that?
Hello, My main domain is abc.com in DirectAdmin. I have another domain xyz.com and when people goto xyz.com, it will redirect to sub.abc.com. How can I achieve that?
C czotos Verified User Joined Oct 19, 2007 Messages 216 Aug 27, 2008 #2 Create an index.html file with the following contents and place it in the public_html folder for xyz.com... <html> <head> <title>sub.abc.com</title> <meta http-equiv="Refresh" content="0;url=http://sub.abc.com/"> </head> <body><p>sub.abc.com</p></body> </html> Click to expand... So now any user that visits xyz.com will automatically be redirected to sub.abc.com.
Create an index.html file with the following contents and place it in the public_html folder for xyz.com... <html> <head> <title>sub.abc.com</title> <meta http-equiv="Refresh" content="0;url=http://sub.abc.com/"> </head> <body><p>sub.abc.com</p></body> </html> Click to expand... So now any user that visits xyz.com will automatically be redirected to sub.abc.com.
dannygoh Verified User Joined Feb 9, 2004 Messages 391 Location Malaysia Aug 27, 2008 #3 my account only available for 1 domain in DirectAdmin. Can Domain Pointer or DNS CNAME do something about it?
my account only available for 1 domain in DirectAdmin. Can Domain Pointer or DNS CNAME do something about it?
nobaloney NoBaloney Internet Svcs - In Memoriam † Joined Jun 16, 2003 Messages 26,113 Location California Aug 28, 2008 #5 dannygoh, You'll have to set up the xyz.com domain somewhere with redirection to sub.abc.com. Jeff