我有这个正则表达式代码:
RewriteCond %{REQUEST_URI} !/login([/]{0,1}) [NC]
RewriteCond %{REQUEST_URI} !/search/([/]{0,1}) [NC]
RewriteCond %{REQUEST_URI} !/search/([^.]+)([/]{0,1}) [NC]
RewriteRule ^([^.]+)/?$ products.php/$1/ [NC,L]
RewriteRule ^([^.]+)/([^.]+)/?$ products.php/$1/$2/ [NC,L]
RewriteRule ^login([/]{0,1})?$ login.php [NC,L]
RewriteRule ^search([/]{0,1})?$ search.php [NC,L]
RewriteRule ^search/([^.]+)/?$ search.php/$1/ [NC,L]
问题是当我去 site/search/asdf 正则表达式将我重定向到 products.php 文件。我怎样才能解决这个问题?