时间:2021-07-01 10:21:17 帮助过:22人阅读
RewriteEngine on
RewriteCond %{REQUEST_URI} !^(/admin|/user)
RewriteRule (.*) /new/$1
RewriteEngine on
RewriteCond %{REQUEST_URI} !^(/admin|/user)
RewriteRule (.*) /new/$1
这种情况要考虑断言
(?!admin|user)
一般的非或与写出来 也许会违背初衷
RewriteEngine onRewriteBase /RewriteCond $1 !^(admin\/(.*)|$)RewriteCond $1 !^(user\/(.*)|$)RewriteCond $1 !^(new\/(.*)|$)RewriteRule ^(.*)$ new/$1 [L,QSA]
这种情况要考虑断言
(?!admin|user)
一般的非或与写出来 也许会违背初衷