Disabled AMP but Redirection Issue
-
Hi,
I wanted to remove AMP pages from my blog and that’s why I disabled AMP plugin. After disabling it, I added below code to .htaccess file.
# Redirect AMP to non-AMP
RewriteEngine On
RewriteCond %{REQUEST_URI} (.+)/amp(.*)$
RewriteRule ^ %1/ [R=301,L]After adding the code above, on opening AMP URL it shows the main page (non-AMP).
Now, the issue is –
When I open main page it opens the main page and when I open AMP page (?amp at the end) it opens the main page but URL remains with ‘?amp’. Below are the examples for better understanding.
Main Page: https://www.insidetechno.com/youtube-channels-users-for-best-pubg-videos/
AMP Page: https://www.insidetechno.com/youtube-channels-users-for-best-pubg-videos/?ampYou can see that in both cases it opens main page.
So is this redirection correct? It can cause copy content issue?
OR “?amp” URLs should automatically redirect to main URL only? If yes, how can I do that?
I’m confused about this redirection. Please help.
- This topic was modified 3 years, 5 months ago by .
- This topic was modified 3 years, 5 months ago by .
The page I need help with: [log in to see the link]
- The topic ‘Disabled AMP but Redirection Issue’ is closed to new replies.