最佳答案
所以你必须使用 apache 的 mod_rewrite(或者任何你的引擎)
RewriteEngine On
RewriteCond %{QUERY_STRING} <a regex here>
RewriteRule ^.*$ http://www.agriturismoborgobiaia.it/ [R,L]
看Clean URL , Rewriting Guide和 mod_rewrite documentation作为引用:
关于.htaccess - 根据查询字符串设置 htaccess 重定向,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5417462/