2011-03-28 11:34:42 1 评论 Apache Boy.Lee

设置 Apache rewrite

{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}