How to remove public from laravel using htaccess
1) Go to Public File
Copy .htaccess file and paste in root directory
2) In root Dicertory
copy server.php and paste it in same place and rename it to index.php
Successfully removed public from url
if you have an error now start your server once
after this security issue in this
its show oue .env file
Now steps for secqure env file
# Deny access to .env
<Files .env>
Order allow,deny
Deny from all
</Files>
Paste it to your htaccess file
Comments
Post a Comment