- TutorialsFrom WPBakery to tagDiv Composer
@Christopher is there any easy way to make all featured images from http to https..i have to make all mine do this but can’t seem to figure out a easy way besides changing each image url
Actually @Chris I tried your wp-config way and also the general settings, but still I get a redirect!
Actually … if I may chime in …
if you use my trick to edit the wp-config.php file, as I suggested, to put in the directive to state the site is https:// you don’t need to do any redirect as WordPress will do that automatically as a redirect for http:// requests. QED.
For instance this also fixes it so that when you go to
WP admin > settings > general settings –
the URL will now show https://yoursite
You can see this “in action” where I did this last week here:
http://www.send2press.com/guru/
note the soft redirect to https, with the theme (I think this is v4.2.2)
ALSO: Google *does* want the ENTIRE site to be https, not just the home page. The idea is to make the web more “trusted” with encrypted connections.
So, if you have a service information page on your site, that needs to be https also. The idea being for a ranking signal, that if you and your competitor both have the same perceived value, if one is https and one is http, the https site will rank a dot higher.
To properly secure your site you do need an SSL certificate installed on your domain. A self-signed cert “might” work for Google’s purposes, but this has not yet been fully acknowledged, although mod_pagespeed does support self-signed certs for pulling http content over https, although we’re doing it using the static paths method.
I too did the same things you did but somehow it get a redirect loop, going to try in a fresh install.
After you get it work you have to go in ur google tools and remove ur site and add it back with the https in this way google bot will hit https instead of http and you have to do that with all ur engines msn as well..
My site is working all over with https,even my sitemap
Did you change ur URL in WP General Settings,because i had to go in there and set both from http to https to make it don’t give me a loop..
For some reason my SSL is on my full site and i did nothing…so may be you should put your back to the old way and leave it too ClouldFlare to do the work for you…
But I need it on whole site, because the posts pages are the pages that get the most visits and they should rank high.
I see the loop,it’s because you doing a redirect from http to https…may be it’s best you just leave https for the front page because that’s all google care about not every page on ur site..people that don’t sell things on there site are use credit cards etc don’t need SSL all over there site..
Why you forcing,it should pick up right away..
Well with me i only want my front page use SSL not all over my site because google is now ranking sites with SSL,before they rank was about speed now they making it more personal i guess…and this is why clouldflare giving away SSL for FREE and doing all the work for you..you don’t have to play with ur WP install are url etc,as long ur site going through clouldflare servers they do it all for you…
Mine too is working https://www.styzic.com but when I force ssl, I get the loop!
I am also using cloudflare itself 😛
But I have my wordpress installed from installatron and the url in it is http://www.styzic.com and I can’t change it to https because I don’t have a cert. on my server.
I created a self-signed cert. but still, should I remove the install from installatron?
If yes then how will I back up?
BTW, your site still has mixed content warning.
-
This reply was modified 11 years by
Shashank Shekhar.
Because CloudFlare is a proxy i had to add this too my “wp-config” to fix the Non-SSL Elements i was getting..i guess now mine working you can test for me..
if (isset($_SERVER[‘HTTP_X_FORWARDED_PROTO’]) && $_SERVER[‘HTTP_X_FORWARDED_PROTO’] == ‘https’)
$_SERVER[‘HTTPS’]=’on’;
CloudFlare just active SSL on my site and i did not had too do nothing but fix a few things like “Non-SSL Elements” and i just get a plugin called “SSL Insecure Content Fixer” and it fix most of them…so my advice too you try clouldFlare and see how it goes for you…
Steven if that was a joke, it was good, 😀
Thanks your your suggestions anyway but I really can not get it done, and I have read upto 50 search results saying the same things that somehow doesn’t work for me 🙁
@Shashank Shekhar there is ways to find out things and it’s called “Google search” all you have to do is search how to set up SSL with wordpress and trust me they will be a lot of links to guide you and help you too do that…
Other opition is cloudflare now giving FREE SSL away and they do all the set up for you and also guide you to set it up on ur server…so try using google search and you will find all ur answers man..
Just to ask, has anyone else tried SSL with this theme and succeeded?
Any tips guys on the redirect loop? I even tried disabling all plugins but in vane!
-
This reply was modified 11 years by
Shashank Shekhar.
I know it’s notthing related to the theme, but how do I setup SSL?
I have done everything but not able to change to https
I tried changing the site url and home url in general settings but that creates a redirect loop 🙁
Thank u guys :*
Good thoughts. Note that the tool I linked to isn’t a plugin but a script you upload and run independently of (but designed for) WP. I believe I found it through the WP migration docs, which warned about changing URLs in a database when you migrate domains.
Well, in our case we were not changing anything except links to embedded images in the posts, so doing it on the server side after making clean backup, and editing only the post tables to search/replace the image location worked for us. Luckily in our case we never used the date based directories for images, and always change from /uploads/ to something like /images/ or /meta/ or /pix/ or whatever.
So simply changing embedded text within the post data worked fine, once we looked at an actual record in the database, copied the actual info in the dbase and search/replaced that by simply adding https vs http to the <img src="http://mysite/images/*
Obviously anybody who is going to edit their dbase file should VERY CAREFULLY research the risks, and make sure
1) backup of data from the WP admin panel
2) backup of dbase from the phpmyadmin or similar
3) possibly full snapshot backup as gzip file of entire website before doing anything at all
If the tool @TheMediumUTM is suggesting works 100%, then that would obviously be the way to go if it supports the wildcard search/replace within a specific data field.
I’ve just been doing it from the server side for almost 20 years, so always first go-to over using some plugin for WordPress, which I generally distrust to edit dbase files; and frankly not even sure our server would allow a plugin to touch the dbase unless this tool is actually simply global editing the posts as posts, vs actually doing dbase mods above the level of the site.
I guess it also depends on how many pages you have. If you have 10,000+ pages, then maybe doing it via phpadmin, and asking your hosting support to do that could be better.
I’ve not looked at that plugin, so have no actual opinion about it…. (and so why am I rambling on here on a Saturday morning anyway?)….. 🙂
@Shashank
if you’re doing it manually, obviously that works too!
Again, for option 3, you should use the tool I linked to. Doing it manually or using phpMyAdmin’s interface for querying are both risky for changing URLs in WordPress.
Consider this quote from a post linked from the tool’s site:
“I can’t emphasise enough that it’s important to handle serialised PHP correctly. If you don’t, then settings will go missing, fields will get corrupted, and your site runs a severe chance of not working on the new location. It’s a pain, but it’s important.”
Here you’re not technically moving to a “new location” but changing “http://…” to “https://…” carries the same risk, I believe. Chris can correct me if I’m wrong. 🙂
<LOL>
welcome to my world; I did the same thing!
I might switch it back on at some point, but right now I found with good optimizations, mod_pagespeed, and decent speed server, the CDN caused more problems. My fave was the CSS not loading for FontAwesome in IE11/Win7-64 totally randomly. (sigh)
Some people have great success with using a CDN, though. It gets even tricker when going to https, which we’re doing now, where you need SSL cert for CDN, wildcard SSL cert for your domain to use a subdomain like cdn.mysite.xyz with A/C name record, and then sharding and/or domain origin mapping with mod_pagespeed …. ouch!
(for those tuning in …. not responsible for your head exploding reading that last paragraph! 🙂 )
Chris, for option 3 I”ll do it manually because there are a lot of links to tags etc too.
I’ve a site that’s not too big so, it should take about an hour 😛
THanks for writing, but of course before that, i’ll make a backup and try phpmyadmin and update via queries. 🙂