Hi there,
In the past I have changed hosts many times because of problems, as we all know all hosting companies are not perfect!
This is my problem:
A.
http://xuzo.com
Hosted on siteground.com
Indexed by Google with a PR5
B.
http://www.xuzo.com
Hosted on hostgator.com
Indexed by Google with a PR6
2 sites that look the same and are or might be, I know that Hostgator redirected http://xuzo.com to http://www.xuzo.com
What should I do?
If I set it up so that http://xuzo.com had completely different content than http://www.xuzo.com, would they be seen as 2 different websites, 2 different URL's?
http://www.xuzo.com is the original version, should I delete http://xuzo.com completely?
I don't really feel like throwing away a PR5 property..
Cheers!

Dani AI

Generated

For : running the same site from two hosts (www and non‑www) splits indexing and link signals across two URLs. and are right to push for a single canonical hostname, but it helps to take a few extra steps so Google recognizes the preferred version reliably and link equity isn’t lost. Pick the canonical form (usually the version with the strongest backlinks or the HTTPS version) and make every other variant consistently resolve to it. (developers.google.com)

Practical checklist to follow (in roughly this order): implement server‑side redirects from every non‑preferred variant directly to the chosen hostname (avoid redirect chains); add a rel="canonical" element on duplicate pages that points to the canonical absolute URL; list only canonical URLs in the sitemap and submit it; and verify the domain in Search Console (use a domain property / DNS verification to cover all subdomains and protocols). Example canonical tag:

<link rel="canonical" href="https://www.example.com/this-page" />

These signals work together and are the recommended way to consolidate duplicate URLs. (developers.google.com)

A few clarifications and cautions: the public “Toolbar PR” numbers referenced in older posts are no longer a maintained metric, so decisions shouldn’t be driven by PR5 vs PR6 — focus on preserving and consolidating real links instead. Also check for hosting misconfigurations where two servers return the same content without proper redirects; that can confuse Google’s canonical selection and slow consolidation. (searchengineland.com)

Verify and monitor: use HTTP tools (curl/online checkers) to confirm correct status codes, inspect URLs with Search Console’s URL Inspection, and allow time (often days to weeks) for Google to reprocess the changes. If the old host won’t be kept, returning a clean redirect or a proper 404/410 is better than leaving duplicate content live. Note that the old “preferred domain” setting in Search Console was deprecated, so the above signals are how Google expects to be told which URL to treat as canonical. (developers.google.com)

Recommended Answers

All 2 Replies

Google sees your website with the 'www' (http://www.example.com) as a different page the without (http://example.com). Pages that link to the page without the 'www' are hurting your pages with the 'www' as the PR is essentially being split between the two pages. Fortunately this is easy to fix. Use a 301 redirect to redirect Google, and everyone else, to the 'www' page from the non 'www' page. The code would look similar to this (mod_rewrite required):

Options +FollowSymlinks 
RewriteEngine On 
RewriteCond %{HTTP_HOST} !^(www\.|$) [NC] 
RewriteRule ^  [L,R=301]

To go from the 'www' to non 'www' use this code:

Options +FollowSymlinks 
RewriteEngine On 
RewriteCond %{HTTP_HOST}//s%{HTTPS} ^www\.(.*)//((s)on|s.*)$ [NC] 
RewriteRule ^ http%3://%1%{REQUEST_URI} [L,R=301]

You should use with www and use 301 as google also recomend 301.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.