如何410有毒的Prestashop URL模式?
我一直在尝试410个模式的数千种有毒网址,这些模式是Google为我的一个客户索引的。我希望包含?%
的网站的每个URL发送410响应代码,以便它们被删除。
URL的示例:
https://www.example.com/fr/promotions?%25252525253Bid_lang=6&p=6
我试图将其放在.htaccess
上,如我在此处的另一个线程上所发现的,但是它不起作用,有什么想法吗?
RewriteRule ^[a-z]shop($|/) - [G]
I've been trying to 410 a pattern of a few thousands toxics URLS that got indexed by Google for one of my clients. I want every urls of the website that contain ?%
to send a 410 response code so they got de-indexed.
Example of an URL :
https://www.example.com/fr/promotions?%25252525253Bid_lang=6&p=6
I've tried to put this in the .htaccess
, above the If module section, as I found on another thread here, but it didn't work, any ideas ?
RewriteRule ^[a-z]shop($|/) - [G]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我希望包含?%的网站的每个URL使用MOD_REWRITE在
.htaccess
文件的顶部Using mod_rewrite at the top of the
.htaccess
file: