地址:是否發(fā)生變化(第一輪循環(huán)除外)
{
重定向規(guī)則 1:是否匹配
{
重定向條件 11:是否滿足
重定向條件 12:是否滿足
……
重定向規(guī)則 1:進行替換
}
重定向規(guī)則 2:是否匹配
{
重定向條件 21:是否滿足
重定向條件 22:是否滿足
……
重定向規(guī)則 2:進行替換
}
……
}
{
重定向規(guī)則 1:是否匹配
{
重定向條件 11:是否滿足
重定向條件 12:是否滿足
……
重定向規(guī)則 1:進行替換
}
重定向規(guī)則 2:是否匹配
{
重定向條件 21:是否滿足
重定向條件 22:是否滿足
……
重定向規(guī)則 2:進行替換
}
……
}
2021-10-06
RewriteCond %{HTTP_USER_AGENT} 2\.0\.50727
RewriteCond 的第 2 個參數(shù)其實是正則表達式格式的
RewriteCond 的第 2 個參數(shù)其實是正則表達式格式的
2021-10-06
RewriteEngine on
RewriteCond %{HTTP_HOST} "127.0.0.(.*)"
RewriteCond %1 "1"
RewriteRule ^(.*)\.htm http://localhost/$1.html [R]
RewriteCond %{HTTP_HOST} "127.0.0.(.*)"
RewriteCond %1 "1"
RewriteRule ^(.*)\.htm http://localhost/$1.html [R]
2019-04-28
RewriteEngine on
RewriteCond $1 "test"
RewriteRule ^(.*)\.htm $1.html [R]
RewriteCond $1 "test"
RewriteRule ^(.*)\.htm $1.html [R]
2019-04-28