I am facing a strange SEO problem as my site opens with multiple www. Example: www www www www example com
The www example com has PR4, www www example com also has pr 4, repeating www more than two times opens my site but doesn't have any PR.

Can anyone let me the know the possible reason for site being opened with multiple www and if possible the solution

Dani AI

Generated

described a classic host-normalization issue: the site is reachable under multiple hostnames (www.example.com, www.www.example.com, etc.), which makes search engines treat each hostname as a separate site and can split ranking signals. is correct to flag a canonical problem, and is right that the URLs will confuse visitors. The usual causes are wildcard DNS or CNAMEs that let any subdomain resolve, server/virtual‑host misconfiguration, a reverse proxy or load‑balancer rewriting Host headers, or application code that blindly prepends www. when building absolute URLs.

Quick troubleshooting checklist (run from a shell on a workstation or the server):

dig +short www.www.example.com
dig +short www.example.com
curl -I http://www.www.example.com
curl -I -H "Host: www.www.example.com" http://SERVER_IP/

Check the DNS zone for * or unexpected CNAME/A records, review Apache/Nginx vhosts (ServerName/ServerAlias), inspect reverse‑proxy rules, and search the codebase for places that build hostnames like http://www. + host.

Immediate fixes to canonicalize (examples — test on staging):

Enforce a single host (Apache .htaccess):

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www\.)+(.+)$ [NC]
RewriteRule ^(.*)$ http://www.%2/$1 [R=301,L]

Equivalent in Nginx:

server {
    listen 80;
    server_name ~^(?:www\.)+(?<domain>.+)$;
    return 301 $scheme://www.$domain$request_uri;
}

If application code builds canonical URLs, strip repeated www. first:

$host = preg_replace('/^(www\.)+/i', '', $_SERVER['HTTP_HOST']);
$canonical = 'https://www.' . $host . $_SERVER['REQUEST_URI'];

Also add a rel="canonical" tag pointing to the chosen hostname, use 301 redirects (not meta refresh), check webmaster/analytics properties for duplicate hostnames, and verify SSL covers the chosen name. Resolve DNS/server rules first; that prevents the duplicate‑host problem at source.

Recommended Answers

All 2 Replies

I don't know why you want to have so many www to confuse the search engine as well as the potential site visitors. You would probably scare them by this kind of url.

I am facing a strange SEO problem as my site opens with multiple www. Example: www www www www example com
The www example com has PR4, www www example com also has pr 4, repeating www more than two times opens my site but doesn't have any PR.

Can anyone let me the know the possible reason for site being opened with multiple www and if possible the solution

I think there is some mistake in your coding part or you have promoted your site with these urls.
It is the indication of canonical problem. Fix it as soon as possible.

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.