最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

redirect - ErrorDocument 410 gives me back a 302 header

programmeradmin5浏览0评论

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

发布评论

评论列表(0)

  1. 暂无评论