WordPress的本地主机无法正常工作 [英] Wordpress localhost not working

查看:91
本文介绍了WordPress的本地主机无法正常工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Wordpress的新手,请协助.

I am new to wordpress so please assist.

我知道已经有一些关于此的问题,但是它没有用,因此寻求帮助

I know there have been some questions regarding this already there but it did not work hence asking for assistance

我已经克隆了一个实时仓库,并将其保存在我通常用于其他php网站的WAMP www文件夹中,并使用localhost/project/对其进行引用,但是现在当我尝试将其重定向到

I have cloned a live repo and saved it in my WAMP www folder which I normally use for other php sites and refer it using localhost/project/ but now when I am trying this it is redirecting to https://localhost/project/

我执行了以下步骤

1)在wp-config.php中设置我的数据库连接

1) Set up my db connection in wp-config.php

2)在wp-config中添加了这两行

2) added these 2 lines in wp-config

define('WP_HOME','localhost/project');
define('WP_SITEURL','localhost/project');

3)在wp-config.php中将WP_CACHE设置为false

3) turned WP_CACHE to false in wp-config.php

我不知道该怎么办,请协助.

I don't know what else to do so please assist.

推荐答案

这是因为重定向的插件(如您可能会使用某些安全性插件),请停用所有插件(要停用数据库中的所有插件,请检查此链接 https://www.templatemonster.com/help/wordpress-禁用-插件-通过数据库-手动-removal.html ),然后从数据库中删除缓存文件夹并更改基本URL,而无需更改配置文件

Its because of plugins that redirect like you may use some security plugin, Please deactivate all plugins ( to deactivate all plugins from database please check this link https://www.templatemonster.com/help/wordpress-disable-plugins-via-database-manual-removal.html )and delete cache folder and change base url from database no need to change config file

您可以在此处检查数据库的基本URL.网址( http://www.inmotionhosting.com/support/website/wordpress/wordpress-changing-the-site-url-and-home-settings ) 让我知道是否有帮助

You can check base url for database here . url (http://www.inmotionhosting.com/support/website/wordpress/wordpress-changing-the-site-url-and-home-settings) Let me know if it helps

最后,您可以尝试编辑配置文件以显示错误报告,以便与自定义相关的任何错误都将显示(Wp-config.php文件,请更改此define('WP_DEBUG',true); true以显示错误).谢谢

Last this you can try edit config file to show error reporting so that if any error related to custom it will display(Wp-config.php file change this define('WP_DEBUG', true); true to show errors). Thanks

这篇关于WordPress的本地主机无法正常工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆