Open salyakhov-art opened 10 years ago
Github strips anything that looks like <html>
tags. Please use backtick quotes to format code as code.
Editted; fixed code formatting
What about the subdomains of the form "sub1.sub2.site.com"? To consider both the subdomain as one or disassemble them?
I will just do:
->subdomains(array('sub1.sub2'))
Also, i think, what if you (Kohana developers & community) realize this feature, will be good, if you show VirtualHost setting example for that site (admin.example.com - subdomain);
I have my subdomains set in htaccess - I'm using multi-domain kohana application
`#BACKEND RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{HTTP_HOST} (www.)?backend. RewriteRule .\ backend.php/$0 [PT,L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{HTTP_HOST} (www.)?api. RewriteRule .\ api.php/$0 [PT,L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{HTTP_HOST} (www.)?user. RewriteRule .\ user.php/$0 [PT,L]
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT,L]`
And each file points to different bootstrap. However currently there is no way to inject subdomain into URL::site
site.com/controller/index // 'default' route admin.site.com/controller/index // 'admin' route
What about the subdomains of the form "sub1.sub2.site.com"? To consider both the subdomain as one or disassemble them?