php - laravel on virtual wamp host -


i’ve set new laravel 5.2 project composer. i’ve moved laravel folder new folder called local, except public folder. i’ve placed files public folder in document root. remove “public” url. i’ve found in tutorial. can call site on wamp server typing http://mysite.

so far good. however, navigation i’ve set below not work.

<a href="<?php echo url::to('/info')?>">{{ trans('navcontent.info') }}</a>  

neither

<a href="mysite/info">{{ trans('navcontent.info') }}</a> 

instead, localhost returns error: “the requested url /info not found on server”

what need configure in laravel in order work?

it works xamp. httpd-vhosts.conf settings:

 <virtualhost *:80>  documentroot "d:/xampp/htdocs"  servername localhost  serveralias localhost  <directory  "d:/xampp/htdoc">     allowoverride     require local  </directory> 

 <virtualhost *:80>  documentroot "d:/xampp/htdocs/mysite"  servername mysite  <directory  "d:/xampp/htdocs/mysite">     allowoverride     require local  </directory> 

all laravel content, except public files, stored in folder local. files public folder in root folder.


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -