Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
278 views
in Technique[技术] by (71.8m points)

php - I put code of laravel in my cpanel and did connection with db in .env file but when i searched url https://eduvision.umairriaz.site/

enter image description here

I added a photo. When I am going to public folder, then it's showing everything.

question from:https://stackoverflow.com/questions/65858278/i-put-code-of-laravel-in-my-cpanel-and-did-connection-with-db-in-env-file-but-w

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

you should add rules in .htaccess

<Files ~ ".(env|json|config.js|md|gitignore|gitattributes|lock)$">
    Order allow,deny
    Deny from all
</Files>

ErrorDocument 403 /404

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...