Welcome Guest, Not a member yet? Register   Sign In
Wildcard subdomains
#2

I would recommend to address it in your webserver configuration, or any other piece of infrastructure software you have in front of your web-app. This might be Web Application Firewall (WAF), or Reverse Proxy (like nginx), or probably with mod_rewrite if you are using Apache.

In this case you will implement Users controller in CI4 with routing you like (e.g. domain.com/users/myname), and then can forward requests coming to myname.domain.com to that URL.
Reply


Messages In This Thread
Wildcard subdomains - by Smil3y - 02-25-2020, 10:08 AM
RE: Wildcard subdomains - by zahhar - 02-25-2020, 10:46 AM
RE: Wildcard subdomains - by jameslittle - 02-25-2020, 10:49 AM
RE: Wildcard subdomains - by Smil3y - 02-25-2020, 09:52 PM
RE: Wildcard subdomains - by zahhar - 02-26-2020, 07:44 AM
RE: Wildcard subdomains - by Smil3y - 02-26-2020, 12:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB