I am pretty sure that this change makes the example incorrect.

That regex is not supposed to match "/foo/" (even if one might
want to do that for directory examples, this particular example
is not about directories). /foo is the whole path.

If a directory example is desired, perhaps a new example would
be better?

....Roy

> On Jan 11, 2023, at 12:13 PM, rbo...@apache.org wrote:
> 
> Author: rbowen
> Date: Wed Jan 11 20:13:31 2023
> New Revision: 1906618
> 
> URL: http://svn.apache.org/viewvc?rev=1906618&view=rev
> Log:
> Fixes example to actually work.
> 
> Modified:
>    httpd/httpd/branches/2.2.x/docs/manual/rewrite/intro.xml
> 
> Modified: httpd/httpd/branches/2.2.x/docs/manual/rewrite/intro.xml
> URL: 
> http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/rewrite/intro.xml?rev=1906618&r1=1906617&r2=1906618&view=diff
> ==============================================================================
> --- httpd/httpd/branches/2.2.x/docs/manual/rewrite/intro.xml (original)
> +++ httpd/httpd/branches/2.2.x/docs/manual/rewrite/intro.xml Wed Jan 11 
> 20:13:31 2023
> @@ -205,7 +205,7 @@ like the <directive module="mod_alias">A
> <dt>2. A web-path to a resource</dt>
> <dd>
> <example>
> -RewriteRule ^/foo$ /bar
> +RewriteRule ^/foo/?$ /bar
> </example>
> <p>If <directive module="core">DocumentRoot</directive> is set
> to <code>/usr/local/apache2/htdocs</code>, then this directive would
> 
> 

Reply via email to