Laravel 5 .htaccess url public remove not working
<p>I am using laravel 5 with default directory structure.
For removing public folder from url I am using following code in .htaccess</p>

<pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On 
  RewriteRule ^(.*)$ public/$1 [L]
&lt;/IfModule&gt;
</code></pre>

<p>I am using xampp and my path is like this <a href="http://localhost/pro/laravel5/public" rel="nofollow">http://localhost/pro/laravel5/public</a></p>

<p>so my project is in htdocs/pro/laravel5/ here I have kept above .htaccess
else everything is default</p>

<p>when I try to access my project I get following error.</p>

<p>NotFoundHttpException in RouteCollection.php line 145:</p>

<pre><code>in RouteCollection.php line 145
at RouteCollection-&gt;match(object(Request)) in Router.php line 719
at Router-&gt;findRoute(object(Request)) in Router.php line 642
at Router-&gt;dispatchToRoute(object(Request)) in Router.php line 618
at Router-&gt;dispatch(object(Request)) in Kernel.php line 210
at Kernel-&gt;Illuminate\Foundation\Http\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 141
at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in VerifyCsrfToken.php line 43
at VerifyCsrfToken-&gt;handle(object(Request), object(Closure)) in VerifyCsrfToken.php line 17
at VerifyCsrfToken-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in ShareErrorsFromSession.php line 55
at ShareErrorsFromSession-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in StartSession.php line 61
at StartSession-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in AddQueuedCookiesToResponse.php line 36
at AddQueuedCookiesToResponse-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in EncryptCookies.php line 40
at EncryptCookies-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request)) in CheckForMaintenanceMode.php line 42
at CheckForMaintenanceMode-&gt;handle(object(Request), object(Closure)) in Pipeline.php line 125
at Pipeline-&gt;Illuminate\Pipeline\{closure}(object(Request))
at call_user_func(object(Closure), object(Request)) in Pipeline.php line 101
at Pipeline-&gt;then(object(Closure)) in Kernel.php line 111
at Kernel-&gt;sendRequestThroughRouter(object(Request)) in Kernel.php line 84
at Kernel-&gt;handle(object(Request)) in index.php line 53
</code></pre>

<p>How can I solve this any suggestion, am I missing any things in .htaccess let me know.
And I don't want to use second option of moving files and folder.</p>