如何通过htaccess删除URL中的?tmpl = component?

时间:2018-06-12 09:20:34

标签: .htaccess

这是我当前的.htaccess文件:

# BEGIN WPSuperCache
# END WPSuperCache
# BEGIN 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>

# END WordPress

我希望删除部分网址中的?tmpl = component

示例网址 https://www.example.com/example/?tmpl=component

想要最终到达网址: https://www.example.com/example/

我应该添加什么代码?

0 个答案:

没有答案