Forum Moderators: Robert Charlton & goodroi
The trend seems to be more and more sites are going the SSL route
Do I need to complete a redirect instruction?
have noticed a number of sites linking in have been going down for a good two/three months now according to the search console.
If the HTTPS prefix replaces HTTP what happens to the backlinks pointing to the site?All these questions are discussed in the links I gave you above.
- Generic Steps to Switch from HTTP to HTTPS -
(Reposted from earlier discussions)
• Read all info at your host concerning certificates & switching to HTTPS and when applicable, follow those instructions.
• Install security certificate.
• Have your host enable HTTPS (if needed.) This will enable access from both HTTP & HTTPS allowing normal access while you test.
• Go through site, page by page & make sure all file paths are relative (no protocol.) Test by accessing site using HTTPS and look for any browser alerts.
• Install 301 code in .htaccess fileNote: your server may require different codeRewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
• Go through site again, page by page, and test. Any remote absolute links will need to be HTTPS including those found in scripts & pluggins. If you publish Adsence or other advertising, links in these scripts need to be HTTPS also (or just remove the protocol altogether.)
• Update sitemap.xml (if applicable) and submit to appropriate agencies (Google, Bing, Yandex, etc)
• In Google Search Council create a new site using HTTPS (do not use the Change of Address form.) It will take a few days to start populating information. This is normal & traffic to old site (HTTP) will drop off accordingly.
• Bing Webmaster Tools, Yandex & others should update automatically once they crawl your new pages. Updating/re-submitting sitemap.xml should speed up this process.
Google understands that all the backlinks are now associated with the HTTPS site.In the specific case of Google, is the redirect even strictly necessary for linking-and-indexing purposes? (I’m thinking, for comparison purposes, of Yandex, which extrapolates your preferred hostname-and-protocol from your response to requests for the root, and applies them to all other URLs on the site.) It’s obviously desirable for lots of other reasons.
Please bear in mind that I have previously redirected from the permalink that has day and name to one containing post name.How and where are you redirecting? Why would you redirect when all you need to do is change your settings? Permalinks are whatever you tell them to be. The site clearly doesn't have years of indexing to be concerned about since you said you started it a few months ago and it can't be indexed the way it is set up. I am perhaps just confused.
"you need to 301 redirect all your URLs." Doesn't the htaccess instruction do this?In WP, you need to add that code - ABOVE (before) the WP section in your htaccess file. No rewrites after the WP section. And change your WP Settings so that the location is your actual https: whatever URL. You do not redirect each page. WP is where the Settings say it is.
[edited by: not2easy at 1:52 pm (utc) on Oct 11, 2018]
[edit reason] use example.com PLEASE [/edit]
Do you mean the Permalinks? It's currently set to http://examplesiteThat is not what you posted two days ago:
Under Wordpress settings, permalinks: the current permalink is set with the following URL structure:Don't confuse Permalinks with Location, these are two different things. Your WP Settings file is where you set up the configuration for some elements of WP. You have mentioned using the Settings > Permalinks so you know where to get to your Settings file. Go to Settings > General and you will see the place where you originally set the Title of your site and the WordPress Address (URL) information. This is what determines the URL, this is where you change it to https. WordPress offers detailed instructions if you need help: [codex.wordpress.org...]
http://example.com/category/page
• Go through site, page by page & make sure all file paths are relative (no protocol.) Test by accessing site using HTTPS and look for any browser alerts.These generic instructions are simpler for WP: Change your Site Address in the Settings > General page. Go through your posts/pages to make sure that any links going out of your site to external sites do not have the http: protocol. In posts and pages you can simply remove the http: part of the URLs and leave them as "//www.example.com/page" or "//example.com/image.jpg" and the browser will find the correct protocol. Any internal links such as to another page on your site you can do the same thing, but replace your domain with "/" to make your internal URLs relative. (assuming that WP is installed in the root directory as it appears to be from your permalinks of two days ago - not today's version)
3) Use FTP to upload the redirection code to the htaccess file. Last I checked, I couldn't find this file, and I don't use a cPanel by the way. Do I need to create one using the notepad with the instruction and then upload to the root directory?The .htaccess file is a hidden system file. it starts with "." and has no file extension like ".txt" so it is hidden by default. You may need to enable the viewing of hidden files on your computer/in your FTP client/in your text editor. The text editor needs to use plain text. If you visit the WP tutorials I posted above you will have complete details. The .htaccess file is a powerful tool, it contains server instructions.
Does this mean the redirecting had been done correctly?
If you are still in HTTP 1.1 , the switch to HTTPS will slowdown your siteIt's extremely minimal. There are many other factors that play a more significant role in speed.
purposely don't tell Google to index“don’t tell G to index” != “tell G not to index”
How can I be sure if it is a 301 redirect? I am sure it is.Well, what makes you sure, then?