我正在将一个网站从 Drupal 迁移到 WordPress。许多网站的页面在 Google 和 Bing 中被索引为http://www.example.com/?q=webpage-name我希望使用 301 重定向将这些页面重定向到格式为http 的新网页: //www.example.com/webpage-name
我试过了:
Redirect 301 /?q=services http://www.example.com/services
我也试过:
Redirect 301 http://www.example.com/?q=services http://www.example.com/services
上述两个示例都重定向到主页而不是服务页面。