hi need please, want remove public in url example http://localhost/mysite/public/dashboard
intto http://localhost/mysite/dashboard
. attempt putting .htaccess public root of mysite..but when access site css, js,images not found. can me on please. don't want set virtual host because not access site in tablet or mobile phone.
here .htaccess
<ifmodule mod_rewrite.c> <ifmodule mod_negotiation.c> options -multiviews </ifmodule> rewriteengine on # redirect trailing slashes if not folder... rewritecond %{request_filename} !-d rewriterule ^(.*)/$ /$1 [l,r=301] # handle front controller... rewritecond %{request_filename} !-d rewritecond %{request_filename} !-f rewriterule ^ index.php [l] # handle authorization header rewritecond %{http:authorization} . rewriterule .* - [e=http_authorization:%{http:authorization}] </ifmodule>
thank in advance.
add in .htaccess
file
rewriterule ^(.*)$ public/$1 [l]