You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2015/07/22 01:47:54 UTC
[Bug 58168] Would like full request evaluation support in
RewriteCond
https://bz.apache.org/bugzilla/show_bug.cgi?id=58168
--- Comment #1 from Eric Covener <co...@gmail.com> ---
> Note, I am aware of Apache's ErrorDocument, but it doesn't support targeting
> with regular expression, or URL rewriting, which are both things I need.
> This feature seems like a natural fit in mod_rewrite.
ErrorDocument works inside of <LocationMatch> and its argument specifies the
new URL-path.
It's probably easier to extend ErrorDocument then to extend mod_rewrite --
mod_rewrite never runs after a status code has been determined by whichever
handler is in charge. One possible extension would be to make ErrrorDocument
take an expression as an argument (as in
http://httpd.apache.org/docs/2.4/expr.html)
For static files, you can also work around the DOCUMENT_ROOT issue by putting
your rewrites in per-directory context. The core will have mapped the URL to a
filename and %{REQUEST_FILENAME} will be a filesystem path.
There's also FallBackResource.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org