Mobile app version of vmapp.org
Login or Join
Welton855

: Had the same problem with another provider and it is really not their fault. It is still a mystery to me how Google was able to find the subdomain path since I never wrote it anywhere.

@Welton855

Had the same problem with another provider and it is really not their fault. It is still a mystery to me how Google was able to find the subdomain path since I never wrote it anywhere.

The more robust solution is to setup your .htaccess so to give a 301 redirect when the wrong domain is accessed. For completeness I also do it for the non www version of the domain. That way Google always resolves and attributes PageRank to the official name. This is simple to do as long as .htaccess are enabled and setup properly.

Here is what one of mine looks like:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^realdomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^subdomain.realdomain.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.subdomain.realdomain.com$
RewriteRule ^/?(.*)$ www.realdomain.com/ [R=301,L]

10% popularity Vote Up Vote Down


Login to follow query

More posts by @Welton855

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme