How to Solve overwrite index.php in windows wampserver ?

Share Me
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  
  •  

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.

About Shahriar Sagor

My name is Shahriar sagor. I'm a developer. I live in Bangladesh and I love to write tutorials and tips that will help to other Developer's. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.

View all posts by Shahriar Sagor →