- I move my wordpress blog from "http" to "https".
- I generate a sitemap that contains canonical urls with "https" and submit it to GSC.
- I used "rel=canonical" tag in all blog post urls.
- I also implement "301 redirect" via "htaccess" file at the same time with "rel=canonical" tag but after quick research it seems it is not recommended.
Although I declare my urls as "https", Google keeps displaying "Standard URL chosen by Google" as "http" version of url and saying that "URL is not on Google" "Duplicate, submitted URL not selected as canonical".
What am I missing I did comprehensive search on the web and implement every possible scenario, but I couldn't be able to get my urls as indexed properly.any suggestions?
rel=canonical
but redirecting to HTTPS which is indeed incorrect (the canonical tag will most likely get ignored in that instance) - that is not what you are doing (you are setting HTTPS as canonical and redirecting to HTTPS - the same, ie. you are redirecting to the canonical URL.) It sounds like you have done everything correctly. If the redirect is implemented correctly then there is no duplicate content. (However, I didn't think that Google would flag HTTP and HTTPS versions of the same URL as "duplicate content"?)