I am developing a Laravel application in which I have simple urls like -domain.com/shop but I want to create two dynamic urls for this like:
Both dynamically point to the same url. I want to dynamically define a subdomain url and a simple url pointing to the same page for each user.
After a lot of research and trying different methods, I finally solved this problem.
After using Acrylic DNS proxy, I have to use two different roots for the main domain and subdomain.
This is the main domain:
Another one for handling subdomains:
In fact, the main thing is that I have to use another route to control the route that acts on the main domain, and I am ignored.