Bug 63716 - mod_rewrite redirecting confusing wording
Summary: mod_rewrite redirecting confusing wording
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Documentation (show other bugs)
Version: 2.4-HEAD
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: HTTP Server Documentation List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-31 18:40 UTC by WJCarpenter
Modified: 2019-08-31 18:40 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description WJCarpenter 2019-08-31 18:40:08 UTC
On https://httpd.apache.org/docs/current/rewrite/remapping.html#backward-compatibility, the example "Backward Compatibility for file extension change" has a confusing explanation.

These sentences:

We rewrite the name to its basename and test for existence of the new extension. If it exists, we take that name, else we rewrite the URL to its original state.

imply a sequence of changes. In fact, it's a sequence to tests to determine whether the change should be made. Given that the evaluation order for mod_rewrite directives is already counter-intuitive, it would be better to be more precise here for the benefit of anyone who is trying to understand the logic flow of the example.