我有一个接收 URL 参数的 Wordpress 页面,例如:
www.test.it/mypage/?param=1
我想让它使用
www.test.it/mypage/1/
我必须在 .htaccess 中写什么来实现它?
编辑:我正在使用 Apache,当前的 mod_rewrite 规则是这些(默认的 Wordpress 规则):
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>