1) Type <?php phpinfo(); ?> in a php file and save it and run that file in the server. 2) And now you can the list of information, just search the word “mod_rewrite” from the browser’s search menu 3) If it is found under the “Loaded Modules” section then this module is already loaded as you see in the picture below, otherwise find the “httpd.conf” file under the “conf” folder inside the Apache’s installation folder. Now find the following line “#LoadModule rewrite_module modules/mod_rewrite.so” in the “httpd.conf” file. 4) Remove the “#” at the starting of the line, “#” represents that line is commented. 5) Now restart the apache server. 6) You can see now “mod_rewrite” in the Loaded Module section while doing “phpinfo()”. If your .htaccess file does not work in server , you should contact your system administrator or web hosting company and ensure they have enabled .htaccess within your account.
This is Anuj Kumar. I’m a professional web developer with 4+ year experience. I write blogs in my free time. I love to learn new technologies and share with others.
I founded PHPGurukul in September 2015. The main aim of this website to provide PHP, Jquery, MySQL, PHP Oops and other web development tutorials.