# Set-RASURLRedirectionSettings

## NAME

Set-RASURLRedirectionSettings

## SYNOPSIS

Modifies URL redirection settings.

## SYNTAX

**Set-RASURLRedirectionSettings** \[-[DefaultAction](#DefaultAction) {DoNotRedirect | Redirect}] \[[Replicate](#replicate-string) *(bool)*] \[[SiteId](#siteid-string) *(uint)*] \[*(*[*CommonParameters*](#CommonParameters)*)*]

## DESCRIPTION

Modifies the active URL redirection settings for the current site.

## PARAMETERS

## DefaultAction

([RedirectActionType](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/redirectactiontype)) Whether the default action is to redirect or not.

Possible values: DoNotRedirect, Redirect

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## Replicate (bool)

Whether the 'Replicate Settings' option is enabled or not.

```
        Required?                    false

        Position?                    named

        Default value                

        Accept pipeline input?       false

        Accept wildcard characters?  false
```

## SiteId (uint)

Site ID in which to modify the specified URL redirection settings.

```
        Required?                    false

        Position?                    named

        Default value                0

        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 documentation. 
```

## INPUTS

-none-

## OUTPUTS

[URLRedirectionSettings](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/types/urlredirectionsettings)

## EXAMPLES

**---------- EXAMPLE 1 ----------**

Set-RASURLRedirectionSettings -DefaultAction Redirect

Modifies the default action of the URL redirection settings for the current site to Redirect.

## RELATED LINKS

* [Get-RASURLRedirectionSettings](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasurlredirectionsettings)
* [Add-RASURLRedirectionEntry](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/add-rasurlredirectionentry)
* Remove-Remove-RASURLRedirectionEntry
* [Set-RASURLRedirectionEntry](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/set-rasurlredirectionentry)
* [Get-RASURLRedirectionEntry](https://docs.parallels.com/landing/ras-powershell-api-guide/parallels-ras-powershell-admin-module/commands/get-rasurlredirectionentry)
