Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Musbah's avatar

file not found 404 after deploy laravel website

hi all, please help me all my video files not found 404 after deploy my laravel website i stored it in public_html/storage/videos

0 likes
6 replies
w99910's avatar

Have you made php artisan storage:link ? If you are deploying on cloud application platform like 'heroku', the filesystem on Heroku is not suitable for persistent storage of data. You should choose other filesystems such as aws s3.

w99910's avatar

Can I see your code in order to debug?

Snapey's avatar

remove everything from public_html

delete public_html

create a symlink from your laravel project's public folder to public_html

Musbah's avatar

I deleted public folder and copied all files and folders from public tp public_html. I tried to create symlink by using putty but did not change any thing.

Snapey's avatar

obviously if you change the public folder then the artisan storage command is not going to work for you and you will need to create your own symlink

oh, and remove any asset() or public_path() helpers from your code

Please or to participate in this conversation.