How to connect a domain to XAMPP - html

Ok, so I have an ip that works, I bought a domain name as well, how do I configure it so that when I type the domain it points to the ip, I do not want some kind of masked url forwarding as I want you to be able to type for example /img/ and go to that directory.
Any help?
(Edit: Spelling)

May I know what's domain vendor you subscribe, like Godaddy?
You can add the A record which can point to your IP address.
Go to 'Manage DNS' and find existing A record or add an A record,
here is a reference guide like Godaddy:
https://hk.godaddy.com/help/a-19238?lang=en

Related

How can I add a "second url" to my current one?

I'm creating a website, and I have some trouble configuring my domain. What I mean by that is, I have the domain (myurl.com). How can I make it so that the URL (example.myurl.com) redirects to myurl.com? It would be greatly appreciated.
(google sites)
It depends on your web server. If its apache, look into name based virtual host, ServerName and ServerAlias.
You also need to configure your DNS. You can also use a PTR or CNAME (canonical name) to point lets say www.mydomain.com to mydomain.com. You can add as many of these in DNS (Name Server) as you well please.
What you are looking for is called a sub-domain.
I couldn't tell you off hand how to set it up, but hopefully that helps you refine your google searches on the matter.

Configure Destination Domain to accept CNAME

I'm currently having issues resolving CNAMEs that point my domain name. When a CNAME points to my domain name, it lands on the 404 error page that every new website has before contents are added.
In details: I have successfully created a CNAME record sample.origin.com to point to sample.destination.com. It hits sample.destination.com but displays a 404 error like sample.destination.com does not exist.
I think there is some configuration to be done on sample.destination.com that should accept the request from sample.origin.com.
I am quite certain about this because I have tried pointing a sample.origin.com to different destination domains and I get the default 404 page for such destination domains.
Any suggestion or help will be greatly appreciated
It sounds like your web server is expecting specific domain name, and the one you’re trying is not one of them.
Either add the domain to the list, provide redirection (application load balancer lister rule) or if the server us single domain, remove domain name so it will respond to all domains.

Point a domain to my website

I have a domain name which i need to to point to a sub domain of my existing website. Both the domain name in question and website are held with the same host so i have CPanel for the website (which has its own domain name and is currently online. Note the host does not provide CPanel (or similar) for domain-names only (i.e. without hosting).
I have seen subdomains and addon domains but from the description in CPanel i cant figure which if either will do what i want ... or even Aliases.
How can i point the domain name to a sub-domain? if possible. I do not want the existing websites domain name to appear in the url when visiting the sub-domain pointed to by the new domain name.
Thanks.
Since you're using cPanel... https://documentation.cpanel.net/display/ALD/Setup+Edit+Domain+Forwarding
If you just deal with a registrar instead of a provider, typically you point '#.domain.com' to 'http://sub.domain.com' - where #.domain.com represents the direct name, domain.com.

redirect mydomain.com to openshift app without www

I am trying to deploy my app on Openshift.
I've added www.mydomain.com, and mydomain.com as aliases on Openshift and changed the cname record 'www' to myapp-mydomain.rhcloud.com
when I try to access the app these are the results,
myapp-mydomain.rhcloud.com - Opens myapp
www.mydomain.com - redirects to myapp
mydomain.com - opens a blank page (the source of the blank page links to a godaddy's parking
looks like this http://mcc.godaddy.com/park/xxxxxxxxxxxxxx
how can I make my mydomain.com point to the application at myapp-mydomain.rhcloud.com
I have tried to change the 'A' record of the domain that pointed to 184.168.221.xx but it needs to be an IP address not the app address.
thank you so much for any help.
Not sure if you've seen this Openshift Article or not https://www.openshift.com/blogs/custom-url-names-for-your-paas-applications-host-forwarding-and-cnames-the-openshift-way but it will walk you through step by step on how to acheive exactly what your asking.
The important part to pay attention to is:
If you want to forward over your whole domain, such as mycompany.com
and not www.mycompany.com, then you either need to use Domain
Forwarding or find a DNS provider that allows "Naked" CName records.
Domain forwarding uses a web server to do a redirect.
Also be sure to check out https://www.openshift.com/forums/openshift/domain-with-no-www-dns-question-is-that-possible.
CloudFlare allows you to create naked domains as CNAME records for free. Add CNAME records for both mydomain.com and www.mydomain.com which aliases myapp-mydomain.rhcloud.com.

I want to point a sub-domain to a new domain address

I'm looking to point a new domain name to my website sub domain address.
So would all I do is buy the new domain name address and use httaccess to tell my site when the new domain name is entered to go to www.newdomain.mydomain.com. How might I go about doing that?
But I'm hoping to have the new domain name address still be shown when they are on my sub domain as this is for a festival I am helping with and they don't need to buy hosting for this short period.
Any help is appreciated.
One way to get the url to stay as the one a user typed in instead of showing up as your subdomain is to put the whole site in a frame that loads your subdomain inside of it. Some registrars will do this for you so you don't need to pay for extra hosting. If you go with this option, you don't really need a subdomain, though, as you could just put the new pages in a folder off of your main site since visitors won't see the address anyway.
A slightly more elegant solution would simply be to use virtual hosts, if your server has the capability. If you have your own server, they are not hard to set up. If you have a hosting package from a company like godaddy, the company website will often give instructions on how to do this. The idea is that the server will handle the responsibility of routing a query to a specific folder based on the url of the request. Then all you need to do is set up the folder. If you give more specifics about what your hosting setup is, it will be easier to give guidance in this respect.
To get your new domain name to point to your website you need to:
configure your domain name to point to your web site IP address
configure your web server to serve your website when it receives requests to that new domain name
The company from which you buy your new domain name will provide you with a web interface to configure your domain name and make it point to your IP address.
If you're managing your web server yourself, you will need to edit its configuration to add a new named virtualhost for your new domain name (virtualhost directives don't go into .htaccess files). If you're using a shared hosting company, they probably also provide a web interface to configure your web site, so that it accepts requests to your new domain name.