web services - Move laravel 4.2 from localhost to shared, or not, web hosting -
web services - Move laravel 4.2 from localhost to shared, or not, web hosting -
i'm trying upload working laravel web app localhost web server, still have same problem: white page. if set phone call phpinfo index.php can see result. i've tried maintain same directory construction of original project, when navigate myhost.com/app/public see white page. i've tried move content of public upper dir, alter paths bootstrap/paths.php of public var '/..' , index.php (removing ../ require autoload.php , start.php), same problem. @ last, i've tried add together lines .htaccess
rewriteengine on rewritecond %{request_uri} !^app/public rewriterule ^(.*)$ app/public/$1 [l]
...and white page.
so don't know problem.
the public/
directory should not within of app/
directory.
if you're on shared host you're on virtual host.
all should have move project, create sure host has mod_rewrite enabled , allowoverride all
in apache configuration (if apache).
and utilize .htaccess below:
<ifmodule mod_rewrite.c> options +followsymlinks rewriteengine on </ifmodule> # files not found in file system, reroute request # "index.php" front end controller, keeping query string intact <ifmodule mod_rewrite.c> rewriteengine on rewritebase / rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] </ifmodule>
web-services laravel laravel-4 localhost
Comments
Post a Comment