Subdomain routing laravel -
i trying run 3 domains laravel project 1 maindomain lets call mydomain.com de.mydomain.com en.mydomain.com
my route.php is:
route::group(array('domain' => 'mydomain.com'), function() { route::get('/', 'homecontroller@index'); route::get('test', 'testcontroller@index'); route::get('collecties', 'collectiescontroller@index'); route::get('contact', 'contactcontroller@index'); route::post('contact', 'contactcontroller@postindex'); }); route::group(array('domain' => 'de.mydomain.com'), function() { route::get('/', 'homecontroller@index'); route::get('test', 'testcontroller@index'); route::get('collecties', 'collectiescontroller@index'); route::get('contact', 'contactcontroller@index'); route::post('contact', 'contactcontroller@postindex'); });
everything on mydomain.com works fine problem is: when go de.mydomain.com url changes de.mydomain.com/de notice /de added add end , error 500 internal server error
did configurate route wrong?
edit if go de.mydomain.com/test wont load testcontroller@index. if dont add parameter (test or ) de.mydomain.com url says de.mydomain.com/de
my .htaccess :
<ifmodule mod_rewrite.c> <ifmodule mod_negotiation.c> options -multiviews </ifmodule> rewriteengine on # redirect trailing slashes... rewriterule ^(.*)/$ /$1 [l,r=301] # handle front controller... rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^ index.php [l] </ifmodule> <filesmatch "\.php$"> addhandler x-httpd-php54 .php </filesmatch>
Comments
Post a Comment