Page with redirect Issue in GSC

eliasm

Registered Member
Joined
Nov 11, 2020
Messages
61
Reaction score
22
Moved my old domains to a new through .htaccess and in GSC getting a "Page with redirect" Error that looks like this:
newdomain.com/newdomain.com/page-name

Pretty sure I did something wrong with redirects. I guess it's because the 301 rule doesn't work for Home Page in this way.

The thing is that I created a simple 301 rule for each page. Examples:
redirect 301 / https://newdomain.com/
redirect 301 /oldpage-2021 https://newdomain.com/newpage-2022

Any ideas how to fix it?
 
I think you need to capitalize the word "redirect" (but I'm not sure). Also, aren't trailing slashes important, as well?? Because, in the example you posted, the first redirect has a trailing slash at the end, while the other redirect doesn't have one.

I'm not very knowledgeable about using .htaccess but try these 2 things first (capitalizaing the words "redirect" and adding / removing the trailing slashes for all URLs that you're redirecting). And if these 2 tricks don't work... I don't know, maybe someone else knows better and can help you :)
 
You should copy and paste the contents of .htaccess here (change domain).

I think you've made an error that makes it rewrite the new url two times before it executes the redirect. I'd guess the first line in your .htaccess related to 301 has your old a d new root domain followed by no brackets, and then you entered the individual pages in the lines under.
 
You should copy and paste the contents of .htaccess here (change domain).

I think you've made an error that makes it rewrite the new url two times before it executes the redirect. I'd guess the first line in your .htaccess related to 301 has your old a d new root domain followed by no brackets, and then you entered the individual pages in the lines under.
Attached .htaccess

Is this because of?
Redirect 301 / https://example.com/


Should I go with RewriteRule instead of simple Redirect 301 for Home Page ?
 

Attachments

Back
Top