WordPress and Permalinks

WordPress uses a function to check mod_rewrite that is not working at our servers, even though we have mod_rewrite installed.
Permalinks-can be enabled by changing the function wp-admin/includes/misc.php:n
function got_mod_rewrite() {
$got_rewrite = apache_mod_loaded(‘mod_rewrite’, true);
return apply_filters(‘got_rewrite’, $got_rewrite);
}
to this format:
function got_mod_rewrite() {
//$got_rewrite = apache_mod_loaded(‘mod_rewrite’, true); //toimimaton funktio;
$got_rewrite = true;//force the response to true as we know mod_rewite is installed;
return apply_filters(‘got_rewrite’, $got_rewrite);
}

03.08.2010

|