如何在一个.htaccess文件中编写两个不同的规则


How to write two different rules in one .htaccess file?

我想把这两个不同的规则写在一个文件中。我该怎么做?

RewriteEngine On
RewriteCond %{REQUEST_URI} /v0'.3/forum/
RewriteRule ^(.*)$ /v0.3/test.php?forum=$1 [L,QSA]
RewriteEngine On
RewriteCond %{REQUEST_URI} /v0'.3/profile/
RewriteRule ^(.*)$ /v0.3/profiles.php?id=$1 [L,QSA]

直接删除第二个RewriteEngine On声明

RewriteEngine On
RewriteCond %{REQUEST_URI} /v0'.3/forum/
RewriteRule ^(.*)$ /v0.3/test.php?forum=$1 [L,QSA]
RewriteCond %{REQUEST_URI} /v0'.3/profile/
RewriteRule ^(.*)$ /v0.3/profiles.php?id=$1 [L,QSA]