Skip to main content

Posts

Showing posts with the label Subdomain

Create and Use Dynamic Laravel Subdomain Routing

  Web Development Create and Use Dynamic Laravel Subdomain Routing   Mokhtar Ebrahim   Published:  May 20, 2017   Last updated:  June 2, 2020 Many websites give their users a custom subdomain for their profiles or pages, so the user can access his profile at http://username.website.com, which is much better. In this post, we will see how to make dynamic Laravel subdomain routing efficiently.   Configure DNS To do this trick, you need to have access to the  DNS server  settings and  apache web server  settings. First, you need to add an  A record  with an asterisk for the subdomain like this: *              IN          A             192.168.1.5 You should replace the IP address with your IP address.   Configure web server Open Apache web serv...