Forum Moderators: Robert Charlton & goodroi
#BLOCK ACCESS THRU SUBDOMAIN
RewriteCond %{HTTP_HOST} ^http(s)://(www.)?primarydomain.com$ [NC]
RewriteCond %{REQUEST_URI} ^/addon subdomain/(.*)$
RewriteRule ^(.*)$ - [L,R=404] Why a 404 return code and not a 301? This .htacess code provides a cold shower to legitimate visitors who happen to take the wrong door. Better to lead them the right way. A 301 redirect is also a strong signal which URL is the canonical version.
(for long reasons involving Google console I wont go into now)I can’t help feeling that you’d get much more useful answers if you could bring yourself to go into this a bit further. It would seem to be the heart of the problem.
If I put a canonical tag in all the pages referencing urls in format1. and submit in format 2. then will Googlebot be forced to index the site in format 1.Setting aside the part about “Googlebot != the Google index”, I don’t think it is ever safe to put “forced” and “Google” in the same sentence.
I can’t help feeling that you’d get much more useful answers if you could bring yourself to go into this a bit further
after verifying ownership of both properties
I don’t think it is ever safe to put “forced” and “Google” in the same sentence.
Note that even if you explicitly designate a canonical page, Google might choose a different canonical for various reasons, such as performance or content.
I do not own site.com and it only offers static hosting with no access to .htaccess however it has high domain authority.Oh, good grief. Find your own domain name and move to a new host. Better now than later. You can go a long way on shared hosting, but that’s assuming some rock-bottom basics like being able to use .htaccess (or non-Apache equivalent) so you have full control over your own site.