got_url_rewrite

The timeline below displays how wordpress function got_url_rewrite has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 6.5

/**
 * Returns whether the server supports URL rewriting.
 *
 * Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx.
 *
 * @since 3.7.0
 *
 * @global bool $is_nginx
 * @global bool $is_caddy
 *
 * @return bool Whether the server supports URL rewriting.
 */
function got_url_rewrite()
{
    $got_url_rewrite = got_mod_rewrite() || $GLOBALS['is_nginx'] || $GLOBALS['is_caddy'] || 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);
}

WordPress Version: 4.6

/**
 * Returns whether the server supports URL rewriting.
 *
 * Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx.
 *
 * @since 3.7.0
 *
 * @global bool $is_nginx
 *
 * @return bool Whether the server supports URL rewriting.
 */
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);
}

WordPress Version: 4.3

/**
 * Returns whether the server supports URL rewriting.
 *
 * Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx.
 *
 * @since 3.7.0
 *
 * @global bool $is_nginx
 *
 * @return bool Whether the server supports URL rewriting.
 */
function got_url_rewrite()
{
    $got_url_rewrite = got_mod_rewrite() || $GLOBALS['is_nginx'] || iis7_supports_permalinks();
    /**
     * Filter 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);
}

WordPress Version: 4.0

/**
 * Returns whether the server supports URL rewriting.
 *
 * Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx.
 *
 * @since 3.7.0
 *
 * @return bool Whether the server supports URL rewriting.
 */
function got_url_rewrite()
{
    $got_url_rewrite = got_mod_rewrite() || $GLOBALS['is_nginx'] || iis7_supports_permalinks();
    /**
     * Filter 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);
}

WordPress Version: 3.7

/**
 * Returns whether the server supports URL rewriting.
 *
 * Detects Apache's mod_rewrite, IIS 7.0+ permalink support, and nginx.
 *
 * @since 3.7.0
 *
 * @return bool Whether the server supports URL rewriting.
 */
function got_url_rewrite()
{
    $got_url_rewrite = got_mod_rewrite() || $GLOBALS['is_nginx'] || iis7_supports_permalinks();
    /**
     * Filter 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);
}