I connected cloudflare to my WordPress and enabled HTTPS flexible.
我把cloudflare连接到我的WordPress上,并启用了HTTPS灵活性。
made 2 page rules https://www.example.com/wp-login.php* https://www.example.com/wp-admin/* leaving SSL as flexible but disabling cache and security level
创建两个页面规则https://www.example.com/wp-login.php* https://www.example.com/wp-admin/*将SSL设置为灵活但禁用缓存和安全级别。
I did install two plugins http-https-remover https-redirection [which I disabled now]
我确实安装了两个http-http -remover https-redirection(我现在禁用了)
I mistakenly changed my sit and home urls to https://example.com so I did access with FTP to fix it back , however the www is back still can't access the website when I disable http-https-remover the website loads the content but its not aligned .
我错误地将我的sit和home url更改为https://example.com,所以我使用FTP来修复它,但是当我禁用http-https-remover时,www仍然不能访问网站,因为网站加载内容,但它没有对齐。
the website it self got the following errors :
网站本身有以下错误:
www.site.com/:8 A Parser-blocking, cross site (i.e. different eTLD+1) script, https://ajax.cloudflare.com/cdn-cgi/nexp/dok3v=f2befc48d1/cloudflare.min.js, is invoked via document.write. This MAY be blocked by the browser in this or a future page load due to poor network connectivity. If blocked in this page load, it will be confirmed in a subsequent console message.See https://www.chromestatus.com/feature/5718547946799104 for more details.
通过document.write调用,可以调用一个非阻塞的、交叉的站点(即不同的eTLD+1)脚本、https://ajax.cloudflare.com/cdn-cgi/nexp/dok3v=f2befc48d1 .js。这可能会被浏览器屏蔽,或者由于网络连接不好而导致未来的页面加载。如果在此页面加载中被阻塞,将在随后的控制台消息中确认。详情请参阅https://www.chromestatus.com/feature/5718547946799104。
but they are not effecting the look and feel of the website .
但他们并没有影响网站的外观和感觉。
for https://www.example.com/wp-admin/ the console is empty and the page returnes 200
对于https://www.example.com/wp-admin/控制台是空的,页面returnes 200。
the http version(when I disabel ssl from cloudflare for the 2 page rules) it gives me. "This page isn’t working
http版本(当我从cloudflare为2页规则解除ssl时)它给了我。“这个页面不是工作
www.assesstm.com redirected you too many time" console :GET http://www.assesstm.com/wp-admin/ net::ERR_TOO_MANY_REDIRECTS and the network is redirecting like crazy between http and https
www.assesstm.com重定向你太多的时间“控制台:获得http://www.assesstm.com/wp-admin/ net:: err_too_many _redirect,网络在http和https之间疯狂地重新定向。
disabling https in all the website gives me the redirect loop in the rest of the site
在所有网站中禁用https可以让我在网站的其他部分重定向。
also worth mentioning that I'm not able to get the debug file after defining DEBUG with true in the wp-config.php file . tried to force ssl on admin but didn't get a solution .
同样值得一提的是,在wp-config中定义debug之后,我无法获得调试文件。php文件。试图在admin上强制ssl,但没有得到解决方案。
those are my wordpress plugins currently
这些是我的wordpress插件。
a:14:{i:0;s:19:"akismet/akismet.php";i:1;s:44:"css3-text-and-image-overlay/css3_overlay.php";i:2;s:39:"easy-google-fonts/easy-google-fonts.php";i:3;s:50:"google-analytics-for-wordpress/googleanalytics.php";i:4;s:19:"jetpack/jetpack.php";i:5;s:29:"pirate-forms/pirate-forms.php";i:6;s:43:"shortcodes-ultimate/shortcodes-ultimate.php";i:7;s:41:"sp-news-and-widget/sp-news-and-widget.php";i:8;s:27:"tawkto-live-chat/tawkto.php";i:9;s:43:"themeisle-companion/themeisle-companion.php";i:10;s:37:"tinymce-advanced/tinymce-advanced.php";i:11;s:24:"wordpress-seo/wp-seo.php";i:12;s:32:"wp-overlays/wp-overlays-lite.php";i:13;s:25:"cloudflare/cloudflare.php";}
any suggestion
任何的建议
2 个解决方案
#1
0
You should turn off SSL at your site and at cloudflare. See if that works.
你应该关闭你的网站和cloudflare的SSL。看看这个行不行。
Then set dns at cloudflare to bypass the cdn (grey cloud). Get ssl going on your site, and see if it loads under https.
然后在cloudflare设置dns,以绕过cdn(灰色云)。让ssl在您的站点上运行,并查看它是否在https下加载。
If all that works, you can now turn on ssl at cloudflare (FULL, not Flexible) and switch dns back to using cloudflare (orange cloud).
如果所有这些都有效,您现在可以在cloudflare (FULL, not Flexible)上打开ssl,并将dns转换回使用cloudflare(橙色云)。
#2
0
Also,disable SSL and clean the cache, I'm sure that out there is a plugin for WP to help to propagate ssl url's, be sure you have it too, but what fixed my problem was disabling the rocket loader, you can find it in the speed option in cloudfare.
另外,禁用SSL和清除缓存,我确定有一个用于WP的插件可以帮助传播SSL url,确保你也有它,但是修复我的问题是禁用火箭加载器,你可以在cloudfare的speed选项中找到它。
#1
0
You should turn off SSL at your site and at cloudflare. See if that works.
你应该关闭你的网站和cloudflare的SSL。看看这个行不行。
Then set dns at cloudflare to bypass the cdn (grey cloud). Get ssl going on your site, and see if it loads under https.
然后在cloudflare设置dns,以绕过cdn(灰色云)。让ssl在您的站点上运行,并查看它是否在https下加载。
If all that works, you can now turn on ssl at cloudflare (FULL, not Flexible) and switch dns back to using cloudflare (orange cloud).
如果所有这些都有效,您现在可以在cloudflare (FULL, not Flexible)上打开ssl,并将dns转换回使用cloudflare(橙色云)。
#2
0
Also,disable SSL and clean the cache, I'm sure that out there is a plugin for WP to help to propagate ssl url's, be sure you have it too, but what fixed my problem was disabling the rocket loader, you can find it in the speed option in cloudfare.
另外,禁用SSL和清除缓存,我确定有一个用于WP的插件可以帮助传播SSL url,确保你也有它,但是修复我的问题是禁用火箭加载器,你可以在cloudfare的speed选项中找到它。