I already remove the public from url when i access the website. i have just created .htaccess in root directory and that contains this code:-
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^$ public/ [L]
RewriteRule (.*) public/$1 [L]
</IfModule>
Now when i access the website it is not showing public and running fine. Now problem is that when i type my website like :- www.example.com/public -> it is still opening i want to show 404 page can anyone help me how to do that.. Thanks in advance