aspnet / BasicMiddleware

[Archived] Basic middleware components for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
169 stars 84 forks source link

mod_rewrite redirect flag should allow no status code value #152

Closed BrennanConroy closed 7 years ago

BrennanConroy commented 7 years ago

On a RewriteRule the [R] flag allows an optional status code value but currently we require a status code value

jkotalik commented 7 years ago

Default to 302?

BrennanConroy commented 7 years ago

Looks like it http://httpd.apache.org/docs/current/rewrite/flags.html#flag_r

Tratcher commented 7 years ago

hmm, what about these other parts? The status code specified need not necessarily be a redirect (3xx) status code. However, if a status code is outside the redirect range (300-399) then the substitution string is dropped entirely, and rewriting is stopped as if the L were used.

In addition to response status codes, you may also specify redirect status using their symbolic names: temp (default), permanent, or seeother.