I am having a few problems with Google search console not validating any of my self hosted WordPress blog pages and I have tracked it down to (I think!) a redirect from HTTP to HTTPS.
This is my .htaccess code.
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*)$ "http\:\/\/blog\.pet\-portraitartist\.com\/$1" [R=301,L]
But I have read on the forum:
If you have access to
.htaccess, then rewrite the HTTP pages to HTTPS. Put in a canonical tag that points to HTTPS
I do have access to my .htaccess file but I have no clue how to write this correctly and make it work to validate my pages.
.htaccessfile? That rule is effectively a Site-A to Site-B type redirect (and it is redirecting to HTTP, not HTTPS - which is certainly wrong). However, having had a quick look at your site, it appears to be redirecting correctly. Theblogsubdomain is a WordPress site and this appears to be redirected by WordPress itself (which is "OK"). The rest of the site is outside of WordPress (perhaps a static HTML site?). And this site is also redirected OK, by Apache(?) - so you seem to already have the redirect somewhere?.htaccesscode" - Incidentally, that is not the.htaccessfile that is driving your WordPress "blog".