There are lots of technique to check this but I’ll show you a very simple technique to check weather mod_rewrite module is enabled or not in you web server.
1. Type in a php file and save it and run that file on the server.
2. so You can get the list of information, just search the word “mod_rewrite” from the browser’s search.
3. If it is found under the “Loaded Modules” section then this module is already loaded as you see in the picture below, otherwise you need to go to the next step for enabling mod_rewrite module.
Enable mod_rewrite module in apache in xampp, wamp.
Please follow below steps:
1. Find the “httpd.conf” file under the “conf” folder inside the Apache’s installation folder.
2. Find the following line “#LoadModule rewrite_module modules/mod_rewrite.so” in the “httpd.conf” file.You can do this easily by searching the keyword “mod_rewrite” from find menu.
3. Remove the “#” at the starting of the line, “#” represents that line is commented.
4. Now restart the apache server.
5. You can see now “mod_rewrite” in the Loaded Module section while doing “phpinfo()”.
Thanks for your time.