haizone's avatar

asset() dosnt work at amazone ec-2

hi i install my laravel app at amazone serer ec-2 after i upload all my file the asset() dosnt work i have this link in the soruce code: http://mysite.compute.amazonaws.com/mysite/css/custom.css

but is dont work i need to add: mysite/public/css.....

but in my localhost its work great

i add to my .htaccess that line: RewriteRule ^(.*)$ public/$1 [L]

and its work but after that the routs dont work to me and i get an page dont found

how i fix that??? i whant to use my server like my localhost

tahnks/

0 likes
1 reply
haizone's avatar

after i add that: RewriteRule ^(.*)$ public/$1 [L]

i can to come in and show all my site good at this link http://mysite.compute.amazonaws.com/mysite/public

but i whant without /public

how i can fix that :/

and without the /public i get: Sorry, the page you are looking for could not be found.

Please or to participate in this conversation.