routes - Laravel / Host Setup for Multi-TLD -
basically ive written out 5 times, still dont know how ask, here goes...
i want 2 domains, example.net , example.info have registered. want them point 1 application i'm building, utilize laravel route 2 different domains there own pages... here i've tried , problems i've ran into...
** #1 domain forwards **
uploaded app example.net , forwarded .info domain .net domain. , tried...
route::group(array('domain' => 'example.info'), function() { route::get('/', function(){ homecoming 'info page!'; }); }); route::group(array('domain' => 'example.net'), function() { route::get('/', function(){ homecoming 'net page!'; }); }); route::get('/', 'homecontroller@index');
problems
laravel domain routing doesnt seem recognise domains without subdomains, eg '{subdomain}.example.net' work, 'example.net' , 'example.info' wont?
when domain forwarding, http_host
show .net , not .info, cant utilize if
or switch
statement in routes file
alternative soloution
the soloution can think of utilize host's shared hosting setup have 2 individual sites, each appropriate domains pointing them , set ide upload both sites?
surely there improve way tho?
any help great, im pretty new if maintain simple please, thanks... jimmy
this seems work php artisan routes looks bit wrong.
http://ryantablada.com/post/multi-tld-routing-in-laravel
i having problem having code pick lastly tld in list. this, although not perfect, seems best reply have found far.
laravel routes hosting multiple-domains tld
No comments:
Post a Comment