20 references to AddApacheModRewrite
Microsoft.AspNetCore.Rewrite (1)
ApacheModRewriteOptionsExtensions.cs (1)
28
return options.
AddApacheModRewrite
(new StreamReader(stream));
Microsoft.AspNetCore.Rewrite.Tests (19)
ApacheModRewrite\ModRewriteMiddlewareTest.cs (19)
18
var options = new RewriteOptions().
AddApacheModRewrite
(new StringReader("RewriteRule /hey/(.*) /$1 "));
43
var options = new RewriteOptions().
AddApacheModRewrite
(new StringReader("RewriteRule /hey/(.*) /$1 [L]"))
44
.
AddApacheModRewrite
(new StringReader("RewriteRule /hello /what"));
69
var options = new RewriteOptions().
AddApacheModRewrite
(new StringReader("RewriteRule /hey/(.*) /$1"))
70
.
AddApacheModRewrite
(new StringReader("RewriteRule /hello /what"));
95
var options = new RewriteOptions().
AddApacheModRewrite
(new StringReader("#RewriteRule ^/hey/(.*) /$1 "));
120
var options = new RewriteOptions().
AddApacheModRewrite
(new StringReader(@"RewriteRule ^/$ /homepage.html"));
145
var options = new RewriteOptions().
AddApacheModRewrite
(new StringReader(@"RewriteRule ^/$ /homepage.html"));
170
var options = new RewriteOptions().
AddApacheModRewrite
(new StringReader(@"RewriteRule !^/$ /homepage.html"));
197
var options = new RewriteOptions().
AddApacheModRewrite
(new StringReader(rule));
228
var options = new RewriteOptions().
AddApacheModRewrite
(new StringReader(rule));
254
.
AddApacheModRewrite
(new StringReader(@"RewriteRule (.+) http://www.example.com$1/"));
280
.
AddApacheModRewrite
(new StringReader(@"RewriteRule (.+) http://www.example.com$1/"));
306
.
AddApacheModRewrite
(new StringReader(@"RewriteRule (.+) http://www.example.com$1/"));
333
.
AddApacheModRewrite
(new StringReader("RewriteCond %{REQUEST_URI} /foo/ \nRewriteCond %{HTTPS} !on \nRewriteRule ^(.*)$ https://www.example.com$1 [R=301,L]"));
361
.
AddApacheModRewrite
(new StringReader("RewriteRule ^(.*)$ $1 [R=301,L]"));
389
.
AddApacheModRewrite
(new StringReader("RewriteRule ^(.*)$ $1 [L]"));
413
var options = new RewriteOptions().
AddApacheModRewrite
(new StringReader(@"RewriteRule ^(.*)$ $1 [R=301,L]"));
441
var options = new RewriteOptions().
AddApacheModRewrite
(new StringReader(@"RewriteCond %{REQUEST_URI} /home