Skip to content
This repository has been archived by the owner on Dec 20, 2018. It is now read-only.

mod_rewrite redirect flag should allow no status code value #152

Closed
BrennanConroy opened this issue Oct 21, 2016 · 3 comments
Closed

mod_rewrite redirect flag should allow no status code value #152

BrennanConroy opened this issue Oct 21, 2016 · 3 comments

Comments

@BrennanConroy
Copy link
Member

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

@jkotalik
Copy link
Contributor

Default to 302?

@BrennanConroy
Copy link
Member Author

@Tratcher
Copy link
Member

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants