Forum Moderators: phranque

Message Too Old, No Replies

Google showing different links in SERPs

         

tomstarrry

2:19 pm on Mar 5, 2021 (gmt 0)

5+ Year Member



Google search results are showing my site links in both URLs, "example.com" and "https://example.com". However the one with https is showing a favicon, and the other one is not. So i wanna keep the https one and delete the other one. I went to GSC to submit "example.com" for removal and it said that URL will be deleted in ALL of its variations. So how do i delete the "example.com" links? Should i just index the ones with https again? Would that work?

[edited by: engine at 3:38 pm (utc) on Mar 5, 2021]
[edit reason] Please use example.com [/edit]

NickMNS

4:45 pm on Mar 5, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



When you write "example.com" do you mean http://example.com? If so, what happens when you go to http://example.com are you redirected to https?

lucy24

5:14 pm on Mar 5, 2021 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



...

Well, I've just deleted a long paragraph about setting your preferred domain in GSC (with/without www, http vs https) because it turns out they no longer have [developers.google.com] this setting. Instead as Nick said above they simply go by your 301s. So make sure the four possible forms are all redirected to the one you prefer.

not2easy

6:58 pm on Mar 5, 2021 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



In case you are tempted to take the ControlPanel shortcut, keep in mind that it defaults to a 302 (temporary) redirect. There are a LOT of older threads around in the Apache forum here and a few that might help are at: [webmasterworld.com...] and another to change for https is here: [webmasterworld.com...]

The https example there would deal with requests for sites that DO use www, but it can be adapted to use non-www. domains as well. There are many examples for both/either need. This is called the canonicalization rewrite and there is not one that is perfect for all.

A search here will turn up thousands of examples. Reading helps you sort through - or you can ask for help if it doesn't go as expected.

Without knowing whether you're using WP I only advise that it should be the last rewrite rule in sequence for your rewrite rules unless you are using WordPress - then the WP rewrite snippet goes at the end.

phranque

7:08 pm on Mar 5, 2021 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



assuming Apache web server, use mod_rewrite directives to implement 301 redirects for http: requests to the corresponding canonical https: urls.

edwsteel

10:23 am on Mar 12, 2021 (gmt 0)

5+ Year Member



I have been using .htaccess for such things and Google accepts it just fine.