How to remove /public from URL

First add a file name .htaccess
After that add this code
<IfModule mod_rewrite.c>
    <IfModule mod_negotiation.c>
        Options -MultiViews -Indexes    </IfModule>

    RewriteEngine On

    RewriteCond %{REQUEST_FILENAME} -d [OR]    RewriteCond %{REQUEST_FILENAME} -f    RewriteRule ^ ^$1 [N]
   RewriteCond %{REQUEST_URI} (\.\w+$) [NC]   RewriteRule ^(.*)$ public/$1

    RewriteCond %{REQUEST_FILENAME} !-d    RewriteCond %{REQUEST_FILENAME} !-f    RewriteRule ^ server.php</IfModule>



Refresh your Project without /public

Visit here to get the file: https://drive.google.com/open?id=1rkAYoaXBC6JSJM6PCApx2FnqkfxHF9EQ

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More