On many time we are face a problem in windows wampserver or virtualhost of index.php file is overwrite. i also fetch that problem as like as:
http://localhost/test/index.php/admin
So in this url we can see index.php write in url, but URL must be without index.php. Now if we are using windows wampserver then we can easily solve out this problem by following bellow step:
1. Open File : C:\wamp\bin\apache\Apache2.4.4\conf\httpd.conf
2. Find : #LoadModule rewrite_module modules/mod_rewrite.so and Then, Just Change, Only remove ‘#’ sign.
#LoadModule rewrite_module modules/mod_rewrite.so
INTO
LoadModule rewrite_module modules/mod_rewrite.so
3.Restart:Â Then restart your wampserver.
Now at last we can open without index.php file like:
http://localhost/test/admin
Read Also : How to count number of files in folder and remove all files in folder in laravel example?
Thanks for read this, I hope it will you. You can also follow us on Facebook.