php - Using .htaccess to remove folder from URL -


i have laravel app, , document root of host configured @ laravel root folder (upper directory of public).

i tried following .htaccess silently rewrite urls, keeps redirecting me /public, instead of showing domain url , rewriting /public

rewriteengine on rewriterule ^(.*)?$ /public$1 [l,nc] 

i want visit example.com , see laravel app, not redirecting user example.com/public.

this definitely : removing /public segment in laravel 4 app

http://creolab.hr/2013/03/removing-the-public-segment-in-a-laravel-4-app/


Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -