
如果解决XAMPP无法正常运行问题
got_mod_rewrite ( No parameters )
got_mod_rewrite: 这个函数用来检查服务器上是否有mod_rewrite。如果mod_rewrite可用,该函数返回一个布尔值为true,否则为false。
返回服务器是否正在运行加载了mod_rewrite模块的Apache。
function got_mod_rewrite() { $got_rewrite = apache_mod_loaded( 'mod_rewrite', true ); /** * Filters whether Apache and mod_rewrite are present. * * This filter was previously used to force URL rewriting for other servers, * like nginx. Use the {@see 'got_url_rewrite'} filter in got_url_rewrite() instead. * * @since 2.5.0 * * @see got_url_rewrite() * * @param bool $got_rewrite Whether Apache and mod_rewrite are present. */ return apply_filters( 'got_rewrite', $got_rewrite ); }