I want to redirect "http://www.example.com/?ac=2&slt=8&slr=1&lpt=1" this url to 404 page through .htaccess. Please provide solution.
Thanks
使用.htaccess将具有查询字符串的URL重定向到404页面
- 写回答
- 好问题 0 提建议
- 关注问题
- 邀请回答
-
2条回答 默认 最新
dtvp3625 2013-10-30 05:53关注Add this rule to your document root's htaccess file:
RewriteEngine On RewriteCond %{QUERY_STRING} ^ac=2&slt=8&slr=1&lpt=1$ RewriteRule ^/?$ - [L,R=404]本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报