有没有一种方法可以将两种类型的变量与.htaccess组合?

时间:2020-09-19 16:55:14

标签: .htaccess

我想在URL中组合两种类型的变量。 像这样: test/(id)?data=(data)

是否可以使用.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]

0 个答案:

没有答案