got_url_rewrite() – Returns whether the server supports URL rewriting.

You appear to be a bot. Output may be restricted

Description

Returns whether the server supports URL rewriting.

Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx.

Usage

$bool = got_url_rewrite();

Parameters

Returns

bool Whether the server supports URL rewriting.

Source

File name: wordpress/wp-admin/includes/misc.php
Lines:

1 to 12 of 12
function got_url_rewrite() {
  $got_url_rewrite = ( got_mod_rewrite() || $GLOBALS['is_nginx'] || iis7_supports_permalinks() );

  
/**
 * Filters whether URL rewriting is available.
 *
 * @since 3.7.0
 *
 * @param bool $got_url_rewrite Whether URL rewriting is available.
 */
  return apply_filters( 'got_url_rewrite', $got_url_rewrite );
}
 

 View on GitHub View on Trac