How to enable mod_rewrite module in apache
How to check weather mod_rewrite module is enabled or not?
The 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 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. Otherwise you need to enable mod_rewrite module.
To enable mod_rewrite module in apache installed under windows environment.
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.
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()”.
Filed under: PHP, Search Engine, Tips & Tricks
