If you have shared hosting, with cpanel, you can add domain yourdomain.com as a addon domain, on addon domain you can set a custom path.
And what, if I'm developing on localhost server ? Where can I find a
.htaccess file to set a rule or even should I create new
.htaccess file ?
For developing I recommend
php -S 'localhost:8000' -t public/
And type in browser localhost:8000
If you don't want to use php built-in server then tell me your prefered server.
This is a good resource: http://forumsarchive.laravel.io/viewtopic.php?id=1258 - personally I like Solution 2 - .htaccess with mod_rewrite - which is adding a simple .htaccess in your document root.
using directly folder Public is not recommended....
this's how i did it
I also did it the same way with @codetrash. See here. http://creolab.hr/2013/03/removing-the-public-segment-in-a-lar...
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us