: Avoid https results in Google Custom Search Engine My web requests a client certificate when you connect through https. I want the certificate pop up dialog to show only through the login screen.
My web requests a client certificate when you connect through https.
I want the certificate pop up dialog to show only through the login screen.
This is easy when all the links you see on the page are http, except from the ones pointing out to the login page.
Google is indexing all pages as https as the authoritative URLs, so mostly I just see https results.
How can I tell Google to stop indexing https instead of http?
How can I tell CSE to show http results instead of https?
More posts by @Angela700
1 Comments
Sorted by latest first Latest Oldest Best
Nowadays Google prefers to index when given the option of both SSL and non-SSL. To avoid the HTTPS being indexed, but accessible to users you can select one of the options below.
Canonical Links
By far the best solution is to use canonical links, this will tell Google the preferred URL for both their crawler and users.
Header No Index
Sometimes using canonical links is not always practical when dealing with static websites, this problem can be easily tackled by using a noindex header response on all pages that use , a typical example of how to setup no index in the .htaccess file
Header set X-Robots-Tag noindex env=HTTPS
Redirect SSL Robots
Since Google treats SSL as a separate site, its possible to have two robot files, one for SSL, one for non-SSL, obviously in the SSL you deny access by using something like this:
RewriteCond %{HTTPS} on
RewriteRule ^robots.txt$ robots-ssl.txt
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.