On Thursday 09 June 2011, Ruediger Pluem wrote: > On 06/07/2011 12:09 AM, [email protected] wrote: > > Author: sf > > Date: Mon Jun 6 22:09:22 2011 > > New Revision: 1132802 > > > > URL: http://svn.apache.org/viewvc?rev=1132802&view=rev > > Log: > > purge some useless uses of '.*' > > > > Modified: > > httpd/httpd/trunk/docs/manual/mod/mod_setenvif.xml > > httpd/httpd/trunk/docs/manual/rewrite/access.xml > > httpd/httpd/trunk/docs/manual/rewrite/intro.xml > > httpd/httpd/trunk/docs/manual/rewrite/rewritemap.xml > > httpd/httpd/trunk/docs/manual/ssl/ssl_faq.xml > > httpd/httpd/trunk/docs/manual/ssl/ssl_howto.xml > > httpd/httpd/trunk/docs/manual/vhosts/examples.xml
> > -RewriteRule .* - [F] > > +RewriteRule . - [F] > > Can we have empty URLs? If yes the above change changes the result > of rule for those. No, I don't think so. But I could change the regexp to ^ if you want. > > # Allow Network Access and/or Basic Auth > > Satisfy any > > > > Modified: httpd/httpd/trunk/docs/manual/vhosts/examples.xml > > URL: > > http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/vhost > > s/examples.xml?rev=1132802&r1=1132801&r2=1132802&view=diff > > ================================================================ > > ============== --- > > httpd/httpd/trunk/docs/manual/vhosts/examples.xml (original) +++ > > httpd/httpd/trunk/docs/manual/vhosts/examples.xml Mon Jun 6 > > 22:09:22 2011 @@ -562,7 +562,7 @@ > > > > # primary vhost<br /> > > DocumentRoot /www/subdomain<br /> > > RewriteEngine On<br /> > > > > - RewriteRule ^/.* /www/subdomain/index.html<br /> > > + RewriteRule . /www/subdomain/index.html<br /> > > Can we have URLs not starting with /? If yes the above change > changes the result of rule for those. Not in server-context (which this example is about). But since I think we can have URLs not starting with / in directory context, maybe I should change that back to "^/".
