Mobile app version of vmapp.org
Login or Join
Berryessa370

: 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

@Berryessa370

Posted in: #Laravel #UrlRewriting

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 ..

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Berryessa370

1 Comments

Sorted by latest first Latest Oldest Best

 

@Cooney921

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';
});

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme