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.
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.
- 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.
- CSS | :enabled Selector
- jQuery | :enabled Selector
- Express.js | app.enabled() Function
- PHP | Palindrome Check
- PHP | check if a number is Even or Odd
- PHP | Check if a number is prime
- PHP | Check if a number is Perfect number
- PHP | Check if a number is armstrong number
- PHP to check substring in a string
- PHP program to check for Anagram
- PHP | Check if all characters are lower case
- PHP | Program to check a string is a rotation of another string
- PHP | ctype_alnum() (Check for Alphanumeric)
- How to check an array is associative or sequential in PHP?
- How to check whether an array is empty using PHP?
- Why to check both isset() and !empty() function in PHP ?
- How to check form submission in PHP ?
- How to check if URL contain certain string using PHP?
- PHP | Check if a variable is a function
- PHP | Check if two arrays contain same elements
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.