Home > front end >  How can I add a "second url" to my current one?
How can I add a "second url" to my current one?

Time:02-27

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)

CodePudding user response:

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.

CodePudding user response:

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.

  •  Tags:  
  • html
  • Related