admin管理员组文章数量:1320780
I've deleted several pages and tags from my site, and bases on my SEO recommendations I've redirected them to 410.
I've done that in my .htaccess file this way:
RewriteRule ^tag/lorem/?$ - [G]
RewriteRule ^tag/ipsum/?$ - [G]
RewriteRule ^tag/dolor/?$ - [G]
RewriteRule ^tag/amet/?$ - [G]
At the end of the .htaccess I've defined the ErrorDocument 410 and I want it to go to a page I've created on Wordpress
ErrorDocument 410 /error-410/
The thing is it sends me to that page, but it gives me a 302 instead a 410 on the headers
Request URL: /tag/routers/
Request Method: GET
Status Code: 302 Found
Remote Address: [::1]:80
Referrer Policy: no-referrer-when-downgrade
What am I doing wrong?
Thanks in advance
本文标签: redirectErrorDocument 410 gives me back a 302 header
版权声明:本文标题:redirect - ErrorDocument 410 gives me back a 302 header 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742090107a2420212.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论