Compartir a través de


RewriteOptionsExtensions.AddRedirectToHttpsPermanent(RewriteOptions) Método

Definición

Redirija una solicitud a https si la solicitud entrante es http, con la devolución de un código de estado 301 para redirigido permanentemente.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddRedirectToHttpsPermanent(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddRedirectToHttpsPermanent (this Microsoft.AspNetCore.Rewrite.RewriteOptions options);
static member AddRedirectToHttpsPermanent : Microsoft.AspNetCore.Rewrite.RewriteOptions -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddRedirectToHttpsPermanent (options As RewriteOptions) As RewriteOptions

Parámetros

Devoluciones

Se aplica a