How to check if mod_rewrite is enabled in PHP ? Last Updated : 20 Dec, 2019 Comments Improve Suggest changes 2 Likes Like Report 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. Comment A aakashpawar1999 Follow 2 Improve A aakashpawar1999 Follow 2 Improve Article Tags : Technical Scripter Web Technologies PHP PHP-basics Explore PHP Tutorial 8 min read BasicsPHP Syntax 4 min read PHP Variables 5 min read PHP | Functions 8 min read PHP Loops 4 min read ArrayPHP Arrays 5 min read PHP Associative Arrays 4 min read Multidimensional arrays in PHP 5 min read Sorting Arrays in PHP 4 min read OOPs & InterfacesPHP Classes 2 min read PHP | Constructors and Destructors 5 min read PHP Access Modifiers 4 min read Multiple Inheritance in PHP 4 min read MySQL DatabasePHP | MySQL Database Introduction 4 min read PHP Database connection 2 min read PHP | MySQL ( Creating Database ) 3 min read PHP | MySQL ( Creating Table ) 3 min read PHP AdvancePHP Superglobals 6 min read PHP | Regular Expressions 12 min read PHP Form Handling 4 min read PHP File Handling 4 min read PHP | Uploading File 3 min read PHP Cookies 9 min read PHP | Sessions 7 min read Like