web\UrlNormalizerRedirectException $statusCode

$statusCode public property The HTTP status code public integer $statusCode = null

web\UrlNormalizerRedirectException $scheme

$scheme public property The URI scheme to use in the generated URL for redirection See also [[yii\helpers\Url::to()]]. public boolean|string $scheme = null

web\UrlNormalizer normalizeTrailingSlash()

normalizeTrailingSlash() protected method Adds or removes trailing slashes from $pathInfo depending on whether the $suffix has a trailing slash or not. protected string normalizeTrailingSlash ( $pathInfo, $suffix )$pathInfo string Raw path info. $suffix string return string Normalized path info.

web\UrlNormalizer normalizeRoute()

normalizeRoute() public method Performs normalization action for the specified $route. public array normalizeRoute ( $route )$route array Route for normalization return array Normalized route throws yii\base\InvalidConfigException if invalid normalization action is used. throws yii\web\UrlNormalizerRedirectException if normalization requires redirection. throws yii\web\NotFoundHttpException if normalization suggests action matching route does not exist.

web\UrlNormalizer normalizePathInfo()

normalizePathInfo() public method Normalizes specified pathInfo. public string normalizePathInfo ( $pathInfo, $suffix, &$normalized = false )$pathInfo string PathInfo for normalization $suffix string Current rule suffix $normalized boolean If specified, this variable will be set to true if $pathInfo was changed during normalization return string Normalized pathInfo

web\UrlNormalizer collapseSlashes()

collapseSlashes() protected method Collapse consecutive slashes in $pathInfo, for example converts site///index into site/index. protected string collapseSlashes ( $pathInfo )$pathInfo string Raw path info. return string Normalized path info.

web\UrlNormalizer $normalizeTrailingSlash

$normalizeTrailingSlash public property Whether trailing slash should be normalized according to the suffix settings of the rule public boolean $normalizeTrailingSlash = true

web\UrlNormalizer $collapseSlashes

$collapseSlashes public property Whether slashes should be collapsed, for example site///index will be converted into site/index public boolean $collapseSlashes = true

web\UrlNormalizer $action

$action public property Action to perform during route normalization. Available options are: null - no special action will be performed 301 - the request should be redirected to the normalized URL using permanent redirection 302 - the request should be redirected to the normalized URL using temporary redirection 404 - yii\web\NotFoundHttpException will be thrown callable - custom user callback, for example: function ($route, $normalizer) { // use custom action for redirections

web\UrlManager setScriptUrl()

setScriptUrl() public method Sets the entry script URL that is used by createUrl() to prepend to created URLs. This is mainly used when $enablePrettyUrl is false or $showScriptName is true. public void setScriptUrl ( $value )$value string The entry script URL that is used by createUrl() to prepend to created URLs.