Is it possible to point a domain (xyz.com) to a subdomain (xyz.abc.com)? If yes, how?
Thanks!
Thanks!
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
RE: Domain point to a subdomain
07-30-2015, 05:29 AM
(This post was last modified: 07-30-2015, 05:30 AM by clu55ter.)
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
Why would you need to setup the subdomain first?
My Sentora Resources
[Module] Mail Quota Count | Vagrant Box with Sentora Graphic and Web Design. Development. www.vanguardly.com (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).
RE: Domain point to a subdomain
08-08-2015, 09:17 PM
(This post was last modified: 08-08-2015, 09:19 PM by apinto.)
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 Graphic and Web Design. Development. www.vanguardly.com
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? (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)? 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 Graphic and Web Design. Development. www.vanguardly.com |
« Next Oldest | Next Newest »
|
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 ,383 |
07-07-2020, 01:22 PM Last Post: TGates |