Rumah > Soal Jawab > teks badan
Saya mahu menukar peraturan dinamik berikut kepada peraturan pseudo-statik
原链接
/zt/tea.php?q=04年生茶
转为
/zt/04年生茶
Peraturan pseudo-statik saya.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>
Mengapa tetapan ini tidak sah?
高洛峰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= [L]