wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren
got_mod_rewrite › WordPress Function
Seit2.0.0
Veraltetn/v
› got_mod_rewrite ( Keine Parameter )
Gibt zurück: |
|
Definiert in: |
|
Codex: |
Returns whether the server is running Apache with the mod_rewrite module loaded.
Ähnliche Funktionen: got_url_rewrite, save_mod_rewrite_rules, remove_rewrite_tag, get_num_queries, add_rewrite_tag
Quellcode
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 ); }