In PHP, there is an inbuilt function called āphpinfoā. By using this function, we can output all the Loaded Modules and see the āmod_rewriteā is enabled or not.
Syntax:
phpinfo();Here is a process to check the āmod_rewriteā load module is enabled or not. Note: The local server used here is XAMPP.
- Create a ācheck.phpā file in āc:/xampp/htdocsā directory and write the below code in that file and save it.
php <?php phpinfo(); ?>
- Now, start the Apache server from the XAMPP Control Panel.
- Open any web browser browser and type following the URL, ālocalhost/check.phpā. It will display the PHP version details and Apache Configuration.
- In Apache Configuration, search for the Loaded Modules section, and there you will find all the modules that are enabled.

- If it is enabled then it will be displayed in the list, as shown in the above screenshot.