• Google has indexed numerous WP pages with noamp=mobile appended to the end as a query string, yet these pages return a 403 response code. I’m trying to redirect all of them since they shouldn’t have been indexed in the first place to the canonical, which is the same URL without the ?noamp=mobile appended.

    The issue is twofold. First the response code would need to be set so that it returns a valid code like a 301 redirect in order to get Google to see it and then update the URL to the new URL. Second is to get the redirection to work for WordPress only for URLs which contain this string.

    • This topic was modified 4 months, 3 weeks ago by thelaw.
Viewing 1 replies (of 1 total)
  • Moderator threadi

    (@threadi)

    These URLs with parameters were probably created by a plugin you are using, possibly one that provides AMP pages. Are you still using it? If not, I can understand why you want to redirect the URLs. This plugin might help, as it allows you to set up fairly flexible redirects: https://wordpress.org/plugins/redirection/

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.