0

I'm deploying my Laravel 8 and MySQL application on Hostinger shared hosting and after finishing all the steps, I'm getting 404 not found error instead of my website content.

So this is my files directory structure:

This my index.php file located in my public folder:

and .htaccess file located in my public folder:

Could you please check and locate where the error is?

1 Answer 1

0

Step1: Create an folder under the root path (for instance: app), Step2: Move all project content under app folder

e.g:

/
  /app
  /public_html

Step3: copy public folder's content to public_html Step4: change the index.php paths with new structure

e.g: "../app/vendors" etc. (same for other paths)

Step5: Update .env credentials

it should works

3
  • unfortunately this solution didn't resolve my problem Commented Sep 3, 2023 at 18:24
  • @AhmedMissaoui can you contact me on linkedin or my e-mail address ? ([email protected]) we can make a google meet or anydesk connection for solving this problem easily Commented Sep 4, 2023 at 8:38
  • 1
    i just emailed you Commented Sep 4, 2023 at 18:27

Not the answer you're looking for? Browse other questions tagged or ask your own question.