Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Redirecting pages to a new domain without losing PageRank

         

Selen

4:01 pm on Mar 26, 2019 (gmt 0)

10+ Year Member Top Contributors Of The Month



I want to close one section of my site and redirect dozens of articles to another domain managed by someone else.

Is it possible that I redirect these links without losing my PageRank? Currently, when using 3xx redirections (including 302), Google passes all PageRank. But how to redirect without losing PageRank?

I thought about adding 410 status like below in PHP before using header('location:, 301), but is it the best way? Would it cause any problems?

header("HTTP/2 410 Gone"); 
header("HTTP/2 301 Moved Permanently");
header("Location: NEW-DOMAIN .cc/{page}.yy");
exit();

tangor

2:49 am on Mar 27, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



One of those odd things ...

Removing content from YOUR site usually will not affect the site. Page rank is for pages. If pages are no longer on your site (a 301 "moves" them elsewhere NOT ON YOUR SITE).

Does g subtract? Ignore? Reevaluate what's left?

If there is a need to make the change for biz or user experience, do it for that reason, and not worry about page rank ... which really does not have the same value it once did 15-20 years ago.

tangor

2:52 am on Mar 27, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Aside ... new domains generally start at zero and go from there, regardless of what is redirected there ... it is a new domain.

rainborick

5:12 am on Mar 27, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Two response codes is invalid. A URL can't be both "Gone" and "Moved Permanently". Even if they both get sent, Google is only going to accept and process one of them. Use the 301. That passes all PageRank and, from your description, accurately reflects the situation.

lucy24

7:02 am on Mar 27, 2019 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



header("HTTP/2 410 Gone");
header("HTTP/2 301 Moved Permanently");
I'm inclined to think this isn't physically possible. Your server will pick one and send it. If it sends the first one it meets--here the 410--then the "Location" part becomes meaningless. If it sends the last one it meets--here the 301--then the line about 410 is just wasted bytes.

:: detour to Horse's Mouth [php.net] ::

php docs seem to say that any new header will replace any earlier one of the same type, unless you explicitly say to send both. They also imply that the Location header will create a 302 response code unless you have already set a 201 or a 3-anything, so it really makes a difference whether the 301 overrides the 410 or not.

:: memo to self: try this on test site some time when it is not quite so late at night ::

Selen

3:50 pm on Mar 27, 2019 (gmt 0)

10+ Year Member Top Contributors Of The Month



To me linking to this new site is sort of like linking to an affiliate site; that's why I wanted to avoid passing PageRank via 30x redirect.

In the end, what I'm going to do, probably, is to let such URLs land on a default 410 / not found page, but would add a nofollow link to the new page; that's not as convenient as auto-redirection because user will have to click on the link to be taken to the new page, but should satisfy my goal, thanks : )