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

(02-26-2020, 07:44 AM)zahhar Wrote:
(02-25-2020, 09:52 PM)Smil3y Wrote: @zahhar @jameslittle thanks for the helps guys, however, I found something a little better.

$routes->get('/', 'Dashboard\Profile::index', ['subdomain' => '*']);

This is still working perfectly, however, I'm not getting the session to my subdomains but I'm still looking for a fix to that.

If anyone has an idea on how to do this, it would be very appreciated.

May I ask you if you did any changes in DNS or webserver to actually allow subdomains? Or they just work out of the box for you?
Well, my friend set this up but you just need a A record in your domain and then you just put in the virtualhosts file and that should be it.

Btw., I got the sessions to work in my subdomains by changing the $cookieDomain options in App.php to '.domain.com'.
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