Secure, https When Live, Website Will Not Open Copy in XAMPP as http

孤街浪徒 提交于 2020-02-29 07:47:24

问题


I downloaded a backup copy of a Wordpress website to use in my xampp server. That website has an SSL certificate on the live server and the prefix to the domain name is https//. When I try to open the copy in my local, xampp server I will type http// but the browser automatically changes it to https// and the page will not open. I know the xampp server is working because I can open other websites in it that do not have that issue. I never had this issue before. Perhaps there is a way to get that SSL certificate from the live site and somehow install it into xampp?... at least as far as that particular site is concerned? I am thinking it must be the Wordpress site copy that is causing the issue so either there's a way to accommodate it or a way to switch that off in the local copy?


回答1:


Add this code to your config.php file.

define('FORCE_SSL', false);
define('FORCE_SSL_ADMIN', false);

define('WP_HOME','http://localhost/sitename');
define('WP_SITEURL','http://localhost/sitename');

Cross check your site link in admin panel setting > General



来源:https://stackoverflow.com/questions/54085795/secure-https-when-live-website-will-not-open-copy-in-xampp-as-http

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!