ApacheModRewriteOptionsExtensions.AddApacheModRewrite Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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)
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
- options
- RewriteOptions
The RewriteOptions
- reader
- TextReader
A stream of mod_rewrite rules.
Returns
Applies to
AddApacheModRewrite(RewriteOptions, IFileProvider, String)
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
- options
- RewriteOptions
The RewriteOptions
- fileProvider
- IFileProvider
The IFileProvider
- filePath
- String
The path to the file containing mod_rewrite rules.