Share via


ApacheModRewriteOptionsExtensions.AddApacheModRewrite Method

Definition

Overloads

AddApacheModRewrite(RewriteOptions, TextReader)

Add rules from an Apache mod_rewrite file

AddApacheModRewrite(RewriteOptions, IFileProvider, String)

Add rules from an Apache mod_rewrite file

AddApacheModRewrite(RewriteOptions, TextReader)

Source:
ApacheModRewriteOptionsExtensions.cs
Source:
ApacheModRewriteOptionsExtensions.cs
Source:
ApacheModRewriteOptionsExtensions.cs

Add rules from an Apache mod_rewrite file

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddApacheModRewrite(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, System::IO::TextReader ^ reader);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddApacheModRewrite (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, System.IO.TextReader reader);
static member AddApacheModRewrite : Microsoft.AspNetCore.Rewrite.RewriteOptions * System.IO.TextReader -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddApacheModRewrite (options As RewriteOptions, reader As TextReader) As RewriteOptions

Parameters

reader
TextReader

A stream of mod_rewrite rules.

Returns

Applies to

AddApacheModRewrite(RewriteOptions, IFileProvider, String)

Source:
ApacheModRewriteOptionsExtensions.cs
Source:
ApacheModRewriteOptionsExtensions.cs
Source:
ApacheModRewriteOptionsExtensions.cs

Add rules from an Apache mod_rewrite file

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Rewrite::RewriteOptions ^ AddApacheModRewrite(Microsoft::AspNetCore::Rewrite::RewriteOptions ^ options, Microsoft::Extensions::FileProviders::IFileProvider ^ fileProvider, System::String ^ filePath);
public static Microsoft.AspNetCore.Rewrite.RewriteOptions AddApacheModRewrite (this Microsoft.AspNetCore.Rewrite.RewriteOptions options, Microsoft.Extensions.FileProviders.IFileProvider fileProvider, string filePath);
static member AddApacheModRewrite : Microsoft.AspNetCore.Rewrite.RewriteOptions * Microsoft.Extensions.FileProviders.IFileProvider * string -> Microsoft.AspNetCore.Rewrite.RewriteOptions
<Extension()>
Public Function AddApacheModRewrite (options As RewriteOptions, fileProvider As IFileProvider, filePath As String) As RewriteOptions

Parameters

fileProvider
IFileProvider

The IFileProvider

filePath
String

The path to the file containing mod_rewrite rules.

Returns

Applies to