rewrite check and open in apache

{PHP Check Code}

 

$result = apache_get_modules();
if(in_array('mod_rewrite', $result)) {
    echo 'OK';
} else {
    echo 'No Support';
}

 

{If "Not Support"}

 

Use this way to open

>Open file : /usr/local/....../apache2/conf/httpd.conf

> Change

#LoadModule rewrite_module modules/mod_rewrite

>To

LoadModule rewrite_module modules/mod_rewrite (Just remove the "#")

{Restart Apache}