I have my shared hosting server on godaddy.com and primary domain is abc.com
Now I have another domain registered xyz.com on some other 3rd service not on godaddy. For this new website xyz.com I have installed wordpress in xyz directory of my godaddy hosting server.
Now how do I point this xyz.com domain to my xyz directory of my hosting server by keeping abc.com website as it is?
B"H
I think URL Masking is what you're looking for. Some domain providers include this in CPanel.
You can also achieve this via .htaccess
Alternatively, you can try frames, though not recommended.
UPDATE
You can also consider using apache as a proxy, though using an A or CNAME record to accomplish this is the right way.
Related
I will tell you about my situation, I have a website hosted by hostinger, and a domain in godaddy which points to the hostinger's site through hostinger's dns and a domain created in cpanel, all good.
The question is that I have a domain in wix, to which I want to point to goddady's, or simply that when I enter this domain in wix it redirects me to godaddy's to see my website in hostinger.
I tried to do it through the CNAME and the A record that Wix has, placing the domain name in the CNAME and the IP that appears in the cpanel in the A record, the problem is that it does not redirect me correctly, showing me this screen.
It is worth mentioning that in the CNAME place the godaddy domain with the www and in the A without the www.
I attach an image of the result.
Any advice or a solution?Result
Currently, my react web app is hosted in firebase hosting and pointed to my main domain (say mydomain.com) and I need a subdomain sub.mydomain.com point to my existing PHP project in another hosting service with a C-panel.
Not Worked : I added a DNS A record to sub.mydomain.com and point it to my Shared IP address located in cpanel. But my main domain also not worked after that.
Any solution to this, I know it's better if I can deploy both sites in the same domain, but for this temporary purpose, it's necessary doing this.
There is nothing complicated.
Let's say,
You will just have to add the A record of sub-domain in the DNS zone of the main domain. Make sure your main domain is using the nameserver of firebase hosting to work the main domain with firebase hosting and sub-domain with hosting service having cPanel.
After, you will have to add the main domain in cPanel, because cPanel will not allow creating the sub-domain without adding the main domain. Then create the sub-domain.
Note: As your domain uses the Nameserver of firebase hosting it shows the site content from the firebase hosting service and as you have to add the A record for the sub-domain using the IP address of the hosting service having cPanel. The sub-domain will show the site from your other service having cPanel.
You can find the Nameserver of your main domain at your domain name registrar. You can use any online tool to find the nameserver of your domain as well.
Put the comment if the above suggestion does not make any sense.
We create custom web apps for businesses and for the first time a client of ours has asked that instead of using our subdomain and instead of using a custom domain for their web app they would like to use their own subdomain for a domain currently hosted on another server.
For instance our domain is webapp.com and their domain is business.com. They would like app.business.com to be point to our name servers so we can continue hosting the web app for them.
I know it's possible to do this because we currently have outgoing CNAMEs on our server for help desks, etc, that aren't hosted on our own server but are using subdomains of ours.
Could you help me with what our client has to do on their zone editing side and what we need to do on our WHM/cPanel side to allow this?
NOTE: We had the client create a CNAME for app.business.com. pointed to our nameserver ns1.webapp.com and then we created an add-on domain for business.com and subdomain for app.business.com but when you try to visit app.business.com it gets the "Sorry!" cPanel page.
Thank you!
Alright I figured out how to do it on my own after a lot of testing & thought I'd post here to help others out in case they run across this in the future.
For the server with the subdomain on it have them create an 'A' record for that subdomain pointing to your server's IP address like so:
subdomain.business.com. ((note the extra period at the end is required))
TTL: 14400
Record Type: A
Pointing To: Your server's IP address.
Now on your server's cPanel you will need to create an addon domain for THAT subdomain (ie subdomain.business.com) - not for the actual business.com domain but for the entire subdomain subdomain.business.com with the folder being the root folder wherever you would like it to show.
That worked for me!
The CNAME should not point to your nameserver but your subdomain f.e. client1.webapp.com.
An other solution could be to add the subdomain app.business.com to your server and the client add an A record for the subdomain to your ip.
I'm not exactly sure if this is more of a DNS question or the nature of most PaaS's.
I purchased a domain from namecheap.com. I wanted to get a WordPress site up and running so I could start development so I went over to openshift, created an account and installed WordPress, which was very easy! Only one problem... I'm having issues trying to sync my domain name from namecheap with the application on openshift. I must admit I've always purchased the domain name and hosting together so I've never had to go this route so I'm not entirely sure this has anything to do with the fact openshift is a PaaS.
In openshift, I have the URL for my application applicationname-account.rhcloud.com and I've added an alias on my namecheap.com account which works for a redirect... If I go to my purchased domain, www.example.com, it will simply redirect me to example-account.rhcloud.com. But I do not want a redirect...
I guess I'm confused as to how you get a domain name that you've purchased from one company to a hosting company. Do I need to modify something on my namecheap account?
This document states that you need to add a bare CNAME record to your DNS setup (may be what you refer to as an alias)
https://www.openshift.com/blogs/custom-url-names-for-your-paas-applications-host-forwarding-and-cnames-the-openshift-way
then add an alias to your Openshift application using the rhc command line tool, eg:
rhc alias add example-account www.example.com
I want to ask about cPanel, i have asked by my customer, they used cPanel as website control panel, so the case like this.
my client have cPanel WHM, their domain's name myClient.com can controled by cPanel, currently they have one exsisting website hosting at www.existingMyClient.com, so they want to make subdomain for example oldsite.myClient.com, which display the content of www.existingMyClient.com,
so, what i must configure in cPanel for that purpose ?
Go to Parked Domains on Cpanel of account existingMyClient.com
Create a parked domain oldsite.myClient.com
This parked subdomain (or domain) point to existingMyClient.com