【发布时间】:2017-05-06 05:43:48
【问题描述】:
在.htaccess 中,我怎样才能对所有带有com_virtuemart 的URL 进行410 重定向。
任何类似:
index.php?page=shop.browse&option=com_virtuemart&search=GO&search_category=63&keyword1=43
【问题讨论】:
标签: .htaccess joomla http-status-code-410
在.htaccess 中,我怎样才能对所有带有com_virtuemart 的URL 进行410 重定向。
任何类似:
index.php?page=shop.browse&option=com_virtuemart&search=GO&search_category=63&keyword1=43
【问题讨论】:
标签: .htaccess joomla http-status-code-410
com_virtuemart 是您网址中 QueryString 的一部分。您可以使用以下方法将具有 com_ 的 url 重定向到 410 错误状态。
RewriteEngine on
RewriteCond %{QUERY_STRING} com_virtuemart [NC]
RewriteRule ^ - [R=410,L]
【讨论】:
G (gone) 标志代替R=410。 (410 走了)