🔍 网站重定向检查工具

📊 当前检查状态

✅ 重定向配置已优化

检查时间:

🌐 URL 标准化检查

主域名: https://mcptutorial.top/ ✅ 正确
www重定向: www.mcptutorial.top → mcptutorial.top ✅ 已配置
HTTPS强制: http → https ✅ 已启用
index.html处理: /index.html → / ✅ 已优化

🔧 已实施的修复措施

✅ 合并了HTTPS和www重定向规则,避免重定向链
✅ 优化了index.html重定向处理
✅ 简化了尾部斜杠处理逻辑
✅ 使用绝对URL避免相对重定向问题

💡 建议和最佳实践

🛠️ 优化后的.htaccess配置

# 合并重定向规则避免重定向链 RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ https://mcptutorial.top/$1 [R=301,L] # 优先处理index.html重定向 RewriteCond %{THE_REQUEST} \s/+index\.html[\s?] [NC] RewriteRule ^index\.html$ https://mcptutorial.top/ [R=301,L]

📈 后续步骤

  1. 等待24-48小时让搜索引擎重新抓取
  2. 在Google Search Console中请求重新索引
  3. 监控"页面索引"报告中的改进情况
  4. 检查Core Web Vitals是否有改善