I have migrated my blog domain from HTTP to HTTPS. I am running my wordpress blog on AWS Bitnami. I have added necessary canonical on all the posts i.e
<link rel="canonical" href="https://blog.incfo.in/"/>
- Modified all the internal links from http to https
Wrote Server 301 Redirect Code in /opt/bitnami/apps/wordpress/conf/httpd- prefix.conf Following is my code:
RewriteEngine On RewriteCond %{HTTPS} !=on RewriteRule ^(.*) https://%{SERVER_NAME}/$1 [R=301,L] RewriteCond "%{HTTP_HOST}" ^ec2-([0-9]{1,3})-([0-9]{1,3})-([0-9]{1,3})-([0-9] {1,3})\..*\.$ RewriteRule "^/?(.*)" "%{REQUEST_SCHEME}://%1.%2.%3.%4%5/$1" [L,R=302,NE]
Still in my webmaster console in excluded section It is showing Duplicate,
Google chose different canonical than user
How Should I fix this?