Redirect ?amp with Regex
-
Hello, I want to delete the AMP Plugin because unfortunately I don’t have any benefit from using it. But I have to set a redirection before deleting it.
I have an AMP URL that looks like this: https://www.mydomain/mypost?amp and https://www.mysite.com/?amp (Google Search Console) and https://www.google.at/amp/s/www.myblog/mysite%3famp (the link shown on my mobile phone). For that the regex rule: /(.*)\/amp –> https://www.yourdomain.com/$1 doesn’t work ??
I also have tried redirect ?amp pages –> source: ^/(.*?)/\?amp=.* –> Target: /$1/ but here the redirection tool tells me that $ for target is wrong. What should I do?
Thanks for your help!
Greetings Kathrin- This topic was modified 3 years, 10 months ago by .
- This topic was modified 3 years, 10 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Redirect ?amp with Regex’ is closed to new replies.