Mobile app version of vmapp.org
Login or Join
Alves908

: How to claim ownership of a website in Webmaster tools if that website redirects to another site Ive got an old website that i want to 301 redirect to another website (using .htaccess). I

@Alves908

Posted in: #301Redirect #GoogleSearchConsole #SiteVerification

Ive got an old website that i want to 301 redirect to another website (using .htaccess). I want to claim ownership of the property in Google Webmaster tools, to do this i usually use the file upload option, the only issue is that if i do this it cant be verified because when google checks for the file, it gets redirected.

The other option is that i set the verification file, tell google to verify, then set the 301, this works, but after a while it seems that google then looks again for the verification, cant find it and thus remarks the site as unverified in the Webmaster tools.

Any ideas how i can get around this ?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Alves908

2 Comments

Sorted by latest first Latest Oldest Best

 

@Dunderdale272

Your best option is probably to verify using DNS. This will work no matter what sort of redirects you have in place. It also doesn't require you to keep up with any special redirect rules.

According to Google's help page, you should:



On the Search Console Home page, click the Manage Site button next
to the site you want, and then click Verify this site.
Click the Alternate methods tab.
Select Domain name provider.
Select your domain registrar and follow the instructions on your
screen. If your domain registrar isn't listed, select Other, and
follow the instructions to manually create a DNS record.
Click Verify. Removing the record from your server can cause your
site to become unverified, and you will need to go through the
verification process again.

10% popularity Vote Up Vote Down


 

@Nimeshi995

Try this:

RewriteCond %{REQUEST_URI} !^/mygooglefile.txt$ [NC]
RewriteRule ^(.*)$ www.example.com/ [R=301,L]


Of course you will need to change the file name and the target domain name.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme