Dynamic subdomain with htaccess and php

1

I'm breaking my head. I need to create dynamic subdomains for each user that registers in my site (ex .: user1.domain.com, user2.domain.com, user3.domain.com) without having to create one by one in the cpanel.

I know this has to do with wildcard I created the entry dns * .mydomain.com but it does not work.

I want to do as in this example: link

I tried this tutorial: link but it did not work because in cpanel it does not let you create dns input with @.

Anyone who can help me will be grateful.

    
asked by anonymous 06.12.2017 / 20:03

1 answer

1

Hello, this is very simple, using wildcard *, see if you can help:

link

    
18.12.2017 / 22:52