lundi 21 novembre 2016

missing images and home page when moving laravel 5.2 project to live server

images works fine in localhost as src="/lr/public/bootstrap/images/photo.jpg" but don't work on live server

error messages on live server is failed 404 not found http://ift.tt/2ffkQXK

note : when i remove /lr/public images works on live server

my cpanel root directory is /home/ad

in /home/ad >> i have folder'lr' that containe my project and i deleted folder public in it

in public_html >> i have contents of folder public >> bootstrap - uploads - index.php ..... etc

second prob

when i try access www.mysite.com it show my 404 page

but when i try access www.mysite.com/home it works fine and show my home page

i want when access www.mysite.com show home page directly

my public_html/index.php

require __DIR__.'/../lr/bootstrap/autoload.php';
$app = require_once __DIR__.'/../lr/bootstrap/app.php';



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire