How to transform URL into domain

Asked

Viewed 65 times

1

I have an application in PHP 7, which works as follows:

Example

http://www.myapp.com.br/username

Every customer has one username to configure and edit your information. When you enter this url, I do the processing in the database and search for information according to the username of the url that is unique.

I wish every customer could have a domain of their own that pointed to my site and became a domain name.

Example:

http://www.myapp.com.br/empresaxyz -> www.empresaxyz.com.br

Giving a read, I found about CNAME, more as I understood it works only for subdomains, and my application does not work like this.

How can I reuse my application for a client domain?

  • To register domains .com.br you should contact the register.br.

  • Yes, I’m already aware of that part, of making changes to the.br record. But which part I have to change, because from what I read, the CNAME only works in subdomains and domains.

  • They are talking about subdomains, no need, so I understand you will need to group these clients into a bank category and determine for each of them a profile page. Without the code it becomes complex to help. Wordpress does something similar with post’s in URL configuration.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.