Is there a way to disallow indexing of the https:// version?

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Post Reply
todorko
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Mar 28, 2013 12:15 pm

Is there a way to disallow indexing of the https:// version?

Post by todorko » Sat Jan 11, 2020 2:22 pm

My site is http://. However, google selected for indexing as canonical https:// version. Is there a way to disallow indexing of the https:// version?

 
User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 5507
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Is there a way to disallow indexing of the https:// version?

Post by AMurray » Sat Jan 11, 2020 10:14 pm

Why would you want to avoid indexing the site? Having an SSL (https://) connection will be in your favour concerning search engine indexing (and ranking).
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

User avatar
AMurray
Joomla! Champion
Joomla! Champion
Posts: 5507
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: Is there a way to disallow indexing of the https:// version?

Post by AMurray » Sat Jan 11, 2020 10:23 pm

The standard way to tell search engines not to index is:create/edit your robots.txt file: add the following:

User-agent: * Disallow: /

This should direct search engines to not index any of your pages (not just SSL). Whether search engines *follow this directive* is not necessarily guaranteed.

I don't understand your comment about your site having "SSL" and "non-SSL" versions. It should be one or the other. SSL is definitely required for sensitive information transfer (even your site's login screen, and anything that involves financial transactions).
Regards,
--------------------------------------------------------------
A Murray
Millennium Falcon - it's the ship that made the Kessel run in less than 12 parsecs! The fastest hunk of junk in the galaxy.

todorko
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Mar 28, 2013 12:15 pm

Re: Is there a way to disallow indexing of the https:// version?

Post by todorko » Sun Jan 12, 2020 10:29 am

My site is 4 years old and it is http. A month ago google indext one of my inner pages as https !?! The inner page I am talking about is 3 years old and it has 350 external links. After google indexed the inner page as https, and declared that version canonical, my site lost the 350 links that I just mentioned.
When I tryed to inspect the https version of the inner page trough the google search console. I get message that the inspected url:

URL not in property
Inspect a URL in the currently selected property or switch properties ???

I dont know what to make from all this?

todorko
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Mar 28, 2013 12:15 pm

Re: Is there a way to disallow indexing of the https:// version?

Post by todorko » Sun Jan 12, 2020 11:05 am

Is there a way to declare the http inner page canonical?

oliverzofia
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Jan 21, 2020 12:05 pm

Disallow indexing of the https:// version

Post by oliverzofia » Tue Jan 21, 2020 12:12 pm

If you want to hide your entire site:

User-agent: *
Disallow: /

If you want to hide individual pages:

User-agent: *
Disallow: /page-name

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26600
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Is there a way to disallow indexing of the https:// version?

Post by Per Yngve Berg » Tue Jan 21, 2020 1:46 pm

Edit the Menu Item and set http only.

afrasiab
Joomla! Apprentice
Joomla! Apprentice
Posts: 8
Joined: Wed Jan 29, 2020 11:34 am

Re: Is there a way to disallow indexing of the https:// version?

Post by afrasiab » Thu Jan 30, 2020 11:01 am

you can do that with the help of robots.txt. Edit the robots.txt file and it will do the work.

hoangtuan17
Joomla! Apprentice
Joomla! Apprentice
Posts: 12
Joined: Sun Dec 08, 2019 3:45 am

Re: Is there a way to disallow indexing of the https:// version?

Post by hoangtuan17 » Thu Feb 13, 2020 3:39 am

If you wish to use the robots.txt method to disallow all or part of your site's https protocol, you simply need to load two separate robots.txt files.

http://yoursite.com/robots.txt
User-agent: *
Allow: /
-------------------------
https://yoursite.com/robots.txt
User-agent: *
Disallow: /

But, I think https is better :D

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 26600
Joined: Mon Oct 27, 2008 9:27 pm
Location: Akershus, Norway

Re: Is there a way to disallow indexing of the https:// version?

Post by Per Yngve Berg » Thu Feb 13, 2020 8:05 am

todorko wrote:
Sun Jan 12, 2020 10:29 am
URL not in property
Inspect a URL in the currently selected property or switch properties ???
This is a problem with micro data. Nothing to do with https, but is caused by another upgrade at Google.

waarnemer
Joomla! Hero
Joomla! Hero
Posts: 2693
Joined: Sun May 04, 2008 12:37 pm

Re: Is there a way to disallow indexing of the https:// version?

Post by waarnemer » Thu Feb 13, 2020 8:58 am

have all http pages redirect to https properly with a 301 item moved permanently.
this will not be of any influence of the links directing to the http page since all of them are redirected to https page.

User avatar
tonytranupc
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Mon Sep 12, 2016 4:14 am

Re: Is there a way to disallow indexing of the https:// version?

Post by tonytranupc » Fri Feb 14, 2020 1:41 pm

todorko wrote:
Sat Jan 11, 2020 2:22 pm
My site is http://. However, google selected for indexing as canonical https:// version. Is there a way to disallow indexing of the https:// version?
I would suggest to create a 301 redirect all HTTPS assets to HTTP, so Google will know that the main one is HTTP version and start to display HTTP versions in Google's result instead of HTTPS.

Code: Select all

RewriteEngine On
RewriteCond %{HTTPS} on
RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
However, I don't know why you prefer to use HTTP than HTTPS, but most browsers now suggest website owners to upgrade to HTTPS indirectly by showing "unsafe", "insecure" alert message when visiting HTTP websites. Google also announced they will start to block HTTP download starting in Chrome 82, which to be released April 2020.

https://blog.chromium.org/2020/02/prote ... ecure.html

Tony Tran
A tech enthusiast and editor
My latest computers and smartphone step-by-step guides
https://bytebitebit.com/author/tonytran/

Gianluca-Oddle
Joomla! Apprentice
Joomla! Apprentice
Posts: 30
Joined: Sat Feb 15, 2020 10:44 pm

Re: Is there a way to disallow indexing of the https:// version?

Post by Gianluca-Oddle » Sun Feb 16, 2020 9:31 pm

You could set up a 301 redirect from https to http which should help you keep your 350 external links, but having SSL is usually preferred as it's secure. I don't know, I'm a little lost on this one

christaa
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Wed Jan 08, 2020 7:15 am

Re: Is there a way to disallow indexing of the https:// version?

Post by christaa » Mon Feb 17, 2020 5:47 am

Using 301 redirect via htaccess will be recommended solution for this issue.

 

Post Reply

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”