Created
December 20, 2017 16:22
-
-
Save mikecastrodemaria/97840d4791c94f13b6a3a10a40396429 to your computer and use it in GitHub Desktop.
A simple test to know if you apache mod_rewrite is loaded
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(!function_exists('apache_get_modules') ){ phpinfo(); exit; } | |
$res = 'Module Unavailable'; | |
if(in_array('mod_rewrite',apache_get_modules())) | |
$res = 'Module Available'; | |
?> | |
<html> | |
<head> | |
<title>A mod_rewrite availability check !</title></head> | |
<body> | |
<p><?php echo apache_get_version(),"</p><p>mod_rewrite $res"; ?></p> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment