有没有办法将两种类型的变量与.htaccess组合在一起?

有没有办法将两种类型的变量与.htaccess组合在一起?,.htaccess,.htaccess,我想在URL中组合两种类型的变量。 大概是这样的: 测试/(id)?数据=(数据) 有没有一种方法可以使用.htaccess实现这一点? 我有这个代码,但它只用于test/(id) RewriteEngine On #RewriteCond %{REQUEST_FILENAME} !-d #RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^test/([0-9a-zA-Z]+) test.php?id=$1 [NC,L]

我想在URL中组合两种类型的变量。 大概是这样的:
测试/(id)?数据=(数据)

有没有一种方法可以使用.htaccess实现这一点? 我有这个代码,但它只用于
test/(id)

RewriteEngine On

#RewriteCond %{REQUEST_FILENAME} !-d
#RewriteCond %{REQUEST_FILENAME}\.php -f

RewriteRule ^test/([0-9a-zA-Z]+) test.php?id=$1 [NC,L]