I want to convert the following dynamic rules into pseudo-static ones
原链接
/zt/tea.php?q=04年生茶
转为
/zt/04年生茶
My pseudo-static rules.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . / [L]
RewriteRule /zt/(\w+) /zt/tea.php?q=
</IfModule>
Why is this setting invalid?
RewriteRule ^/zt/(\w+)$ /zt/tea.php?q=$1