当我使用以下url重写时:

http://www.mapsopensource.com/m.php?url=asia-globe-map

http://www.mapsopensource.com/asia-globe-map.html

它重写得很好但是当我将它与另一个规则结合并尝试重写以下内容时,结果是什么:

http://www.mapsopensource.com/country.php?countryAlias=usa

http://www.mapsopensource.com/usa.html

请指导我如何将两个或多个不同的动态网址中的两个网址重写组合在一起 .

我目前的代码是:

RewriteEngine On
RewriteBase /

RewriteCond %{THE_REQUEST} ^(GET|POST)\ /m\.php\?url=(.*)\ HTTP
RewriteRule ^ /%2.html? [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)\.html$ /m.php?url=$1 [L,QSA]


RewriteCond %{THE_REQUEST} ^(GET|POST)\ /country\.php\?countryAlias=(.*)\ HTTP
RewriteRule ^ /%2.html? [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)\.html$ /country.php?countryAlias=$1 [L,QSA]