This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Domain point to a subdomain
#1
Domain point to a subdomain
Is it possible to point a domain (xyz.com) to a subdomain (xyz.abc.com)? If yes, how?

Thanks!
Reply
Thanks given by:
#2
RE: Domain point to a subdomain
easy...

Setup the domain. Then setup the subdomain on same folder.

Create a .htaccess that will enforce the subdomain as main URL.

M B
No support using PM (Auto adding to IGNORE list!), use the forum. 
How to ask

200$ free to start your VPS 60 days credit
Reply
Thanks given by:
#3
RE: Domain point to a subdomain
Don't know if you've already sorted this but there different ways to redirect your URL to a subdomain check out this link. http://blogs.tanertemel.co.uk/2015/05/se...irect.html
Reply
Thanks given by:
#4
RE: Domain point to a subdomain
(07-29-2015, 08:14 PM)Me.B Wrote: easy...

Setup the domain. Then setup the subdomain on same folder.

Create a .htaccess that will enforce the subdomain as main URL.

M B

What about if I have to setup a subdomain first?

Thanks!
Reply
Thanks given by:
#5
RE: Domain point to a subdomain
Why would you need to setup the subdomain first?
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#6
RE: Domain point to a subdomain
(08-08-2015, 02:37 AM)apinto Wrote: Why would you need to setup the subdomain first?

Thanks for your reply, but I think you must be misunderstanding, please read my question properly: domain (xyz.com) point to a subdomain (xyz.abc.com).

The subdomain is under domain of abc.com, whereas domain is a different one (xyz.com).
Reply
Thanks given by:
#7
RE: Domain point to a subdomain
It's very easy to do that.
First you add abc.coom domain (or add it as a shared domain that will allow abc.com to be used by all accounts to create subdomains).

Than you create the subdomain xyz.abc.com
On the public_html folder of that subdomain you create a htaccess file that redirects ot the domain you want.
You can use http://www.htaccessredirect.net/ to generate your file fi you are not sure about how it is done.

The above steps are true, either for a subdomain or a regular top level domain (abc.com)

Also, if you need to create the subdomain first, it will work exactly the same way, however it will be redirected to a error page (because domain does not exist)
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:
#8
RE: Domain point to a subdomain
Thanks, apinto! But if I use htaccess for the redirection, will the URL on my browser changed to destination domain name (in my case, xyz.abc.com)?

And when I click on the link at xyz.abc.com after htaccess redirection, for example contactus.php page, is it showing http://xyz.abc.com/contactus.php or http://xyz.com/contactus.php?
Reply
Thanks given by:
#9
RE: Domain point to a subdomain
(08-11-2015, 06:41 PM)tonywonghs Wrote: Thanks, apinto! But if I use htaccess for the redirection, will the URL on my browser changed to destination domain name (in my case, xyz.abc.com)?

And when I click on the link at xyz.abc.com after htaccess redirection, for example contactus.php page, is it showing http://xyz.abc.com/contactus.php or http://xyz.com/contactus.php?

This is something you should try and see the results...

However the URL on the address bar will the destination one.
The URL will always be the destination one unless you specify otherwise.
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora

[Image: vanguardly-logo-micro.png]
Graphic and Web Design. Development.
www.vanguardly.com


Reply
Thanks given by:


Possibly Related Threads…
Thread Author Replies Views Last Post
Public_html Inside Domain/Subdomain zHostingSolutions 2 5 ,032 07-23-2021, 09:57 AM
Last Post: Nigel
redirect error after letsencrypt + subdomain mizerek 1 4 ,843 08-06-2020, 04:54 AM
Last Post: mizerek
Cannot Create 2nd 'Addon' Domain In Sentora? Error: Invalid backend configuration. Re BattlinThrough 2 6 ,382 07-07-2020, 01:22 PM
Last Post: TGates

Forum Jump:


Users browsing this thread: 2 Guest(s)