You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by rb...@apache.org on 2011/04/08 16:16:04 UTC
svn commit: r1090257 -
/httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml
Author: rbowen
Date: Fri Apr 8 14:16:04 2011
New Revision: 1090257
URL: http://svn.apache.org/viewvc?rev=1090257&view=rev
Log:
Remove unnecessary .* as mentioned in
http://stackoverflow.com/questions/5587148/regex-patterns-in-apache-rewritecond-and-friends-full-or-partial-match
Modified:
httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml
Modified: httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml?rev=1090257&r1=1090256&r2=1090257&view=diff
==============================================================================
--- httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml (original)
+++ httpd/httpd/branches/2.2.x/docs/manual/rewrite/remapping.xml Fri Apr 8 14:16:04 2011
@@ -465,8 +465,8 @@ com http://www.example.com/<br />
RewriteCond %{HTTP_USER_AGENT} ^<strong>Mozilla/3</strong>.*<br />
RewriteRule ^foo\.html$ foo.<strong>NS</strong>.html [<strong>L</strong>]<br />
<br />
-RewriteCond %{HTTP_USER_AGENT} ^<strong>Lynx/</strong>.* [OR]<br />
-RewriteCond %{HTTP_USER_AGENT} ^<strong>Mozilla/[12]</strong>.*<br />
+RewriteCond %{HTTP_USER_AGENT} ^<strong>Lynx/</strong> [OR]<br />
+RewriteCond %{HTTP_USER_AGENT} ^<strong>Mozilla/[12]</strong><br />
RewriteRule ^foo\.html$ foo.<strong>20</strong>.html [<strong>L</strong>]<br />
<br />
RewriteRule ^foo\.html$ foo.<strong>32</strong>.html [<strong>L</strong>]