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?
高洛峰2017-05-18 10:48:50
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . / [L]
RewriteRule /zt/tea.php=(\w+) /zt/tea.php?q=$1 [L]