< Back
Move-PodeResponseUrl
Post
NAME Move-PodeResponseUrl
SYNOPSIS
Redirecting a user to a new URL.
SYNTAX
Move-PodeResponseUrl -Url <String> [-Moved] [<CommonParameters>]
Move-PodeResponseUrl [-Port <Int32>] [-Protocol <String>] [-Address <String>] [-Moved] [<CommonParameters>]
DESCRIPTION
Redirecting a user to a new URL, or the same URL as the Request but a different Protocol - or other components.
PARAMETERS
-Url <String>
Redirect the user to a new URL, or a relative path.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Port <Int32>
Change the port of the current Request before redirecting.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Protocol <String>
Change the protocol of the current Request before redirecting.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Address <String>
Change the domain address of the current Request before redirecting.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Moved [<SwitchParameter>]
Set the Status Code as "301 Moved", rather than "302 Redirect".
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Move-PodeResponseUrl -Url 'https://google.com'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Move-PodeResponseUrl -Url '/about'
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Move-PodeResponseUrl -Protocol HTTPS
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Move-PodeResponseUrl -Port 9000 -Moved
RELATED LINKS
SYNOPSIS
Redirecting a user to a new URL.
SYNTAX
Move-PodeResponseUrl -Url <String> [-Moved] [<CommonParameters>]
Move-PodeResponseUrl [-Port <Int32>] [-Protocol <String>] [-Address <String>] [-Moved] [<CommonParameters>]
DESCRIPTION
Redirecting a user to a new URL, or the same URL as the Request but a different Protocol - or other components.
PARAMETERS
-Url <String>
Redirect the user to a new URL, or a relative path.
Required? true
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Port <Int32>
Change the port of the current Request before redirecting.
Required? false
Position? named
Default value 0
Accept pipeline input? false
Accept wildcard characters? false
-Protocol <String>
Change the protocol of the current Request before redirecting.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Address <String>
Change the domain address of the current Request before redirecting.
Required? false
Position? named
Default value
Accept pipeline input? false
Accept wildcard characters? false
-Moved [<SwitchParameter>]
Set the Status Code as "301 Moved", rather than "302 Redirect".
Required? false
Position? named
Default value False
Accept pipeline input? false
Accept wildcard characters? false
<CommonParameters>
This cmdlet supports the common parameters: Verbose, Debug,
ErrorAction, ErrorVariable, WarningAction, WarningVariable,
OutBuffer, PipelineVariable, and OutVariable. For more information, see
about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).
INPUTS
OUTPUTS
-------------------------- EXAMPLE 1 --------------------------
PS C:\\>Move-PodeResponseUrl -Url 'https://google.com'
-------------------------- EXAMPLE 2 --------------------------
PS C:\\>Move-PodeResponseUrl -Url '/about'
-------------------------- EXAMPLE 3 --------------------------
PS C:\\>Move-PodeResponseUrl -Protocol HTTPS
-------------------------- EXAMPLE 4 --------------------------
PS C:\\>Move-PodeResponseUrl -Port 9000 -Moved
RELATED LINKS