Trait Canonical
Direct Known Users
MvcCore\RouterIndirect Known Users
MvcCore\Ext\Routers\Localization, MvcCore\Ext\Routers\Media, MvcCore\Ext\Routers\MediaAndLocalization, MvcCore\Ext\Routers\Module, MvcCore\Ext\Routers\ModuleLocalization, MvcCore\Ext\Routers\ModuleMedia, MvcCore\Ext\Routers\ModuleMediaAndLocalization
protected
boolean
|
#
canonicalRedirectIfAny( )
Redirect to canonical URL if request is not an internal and also if request
is not realized by GET method and also if canonical redirect is not permitted.
Then try to complete canonical (shorter) URL by detected strategy and if
canonical URL is different, redirect to it.
Return |
protected
boolean
|
#
canonicalRedirectQueryStringStrategy( )
If request is routed by query string strategy, check if request controller or request action is the same as default values. Then redirect to shorter canonical URL. |
protected
boolean
|
#
canonicalRedirectRewriteRoutesStrategy( )
If request is routed by rewrite routes strategy, try to complete canonical URL by current route. Then compare completed base URL part with requested base URL part or completed path and query part with requested path and query part. If first or second part is different, redirect to canonical shorter URL. |