: How to rewrite laravel /public directory So by default the index.php is in the public directory. I want to rewrite the url so that abc.com/public/ becomes abc.com/ ?? I am very new to url
So by default the index.php is in the public directory. I want to rewrite the url so that abc.com/public/ becomes abc.com/ ??
I am very new to url rewriting ..
More posts by @Berryessa370
1 Comments
Sorted by latest first Latest Oldest Best
Laravel is designed to protect your application code.
All the files except public folder should not have public access.So You should upload all other files just before public folder in your server.
Still if you really want to change it:
You can override the public folder using IOC container,
Ex:
App::bind('path.public', function() {
return base_path().'/public_html';
});
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.