: Why does Google show two different site names for my site? I recently upgraded to https as well as being the victim of malware/hacking. If i now search for my site i get two different site
I recently upgraded to https as well as being the victim of malware/hacking. If i now search for my site i get two different site titles from google for my homepage?
For example if i search for the exact name "getgeek.net" i get the Asian hacked title which hasn't dissapeared:
www.google.co.uk/search?q=getgeek&oq=getgeek&aqs=chrome..69i57j69i60l2j0j69i65j69i59.1752j0j7&sourceid=chrome&ie=UTF-8#q=getgeek.net
but if i search for "getgeek" i see the correct title:
www.google.co.uk/search?q=getgeek&oq=getgeek&aqs=chrome..69i57j69i60l2j0j69i65j69i59.1752j0j7&sourceid=chrome&ie=UTF-8
Why would it do this and is there anyway to force it to refresh?
More posts by @Caterina187
1 Comments
Sorted by latest first Latest Oldest Best
Try this method might help to solve your problem,
You need to add a canonical tag to your new website. Canonical is nothing but 'individual web page can load for multiple urls creates by own'.
You can avoid this by adding a canonical tag to your website which you need to avoid duplication.This is the code you need to add on your new updated website to avoid creating a different URL for your same content <link rel=" canonical" href="http://example.com/blog" /> (those codes on your head section your updated website/web page).
Or this may be one of the reasons for getting the same page you haven't redirect your old http site to your new https. By using htaccess file you can redirect your old page to new page by adding a code in htaccess file.
Creating a htaccess file:
Create a empty text file using default notepad and save it as htaccess.txt.
Edit the content in text file for redirecting as # This allows you to redirect your entire website to any other domain
Redirect 301 / mt-example.com/ If you want to redirect a particular homepage/index.html page use this code
Redirect /index.html example.com/newdirectory/. You can use this for http to https redirecting
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ example.com/ [R,L]
Upload this file and rename it to .htaccess.
NOTE: If your website is already attacked by malware after know that all your content and website are secure then redirect otherwise don't do this method use cononical tag to avoid duplication.
Feel free to ask if you have any doubts I'm here to clarify...!!
Thankyou
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.