Reputation: 299
I am using laravel and in a problem with the '/public' included in URL. I have searched on the internet to remove it. Some links suggested to edit htaccess file but found it risky as it will allow env and other files to open access. Anybody suggest me to remove /public from url in a safe way.
Note: I am using Apache shared server hosting.
Upvotes: 2
Views: 898
Reputation: 299
I found my answer,
To remove '/public' from laravel default url (ie: 'www.yoursite.com/public') on shared hosting similar to my situation,
Just add '/public' at the end of my site location in document root.
Example Image:
Note: if you have following document root in your shared hosting then just replace in with '/public_html/newdomain.com/public'
Upvotes: 2