本地站点正常,但是当我们在服务器上部署相同的文件夹时......它显示损坏的页面 [英] local site comes properly but when we deploy same folder on server ... it shows broken pages

查看:16
本文介绍了本地站点正常,但是当我们在服务器上部署相同的文件夹时......它显示损坏的页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 wordpress 中创建了一个网站,它在 localhost 上正常工作,没有任何干扰.但是当我将相同的文件夹部署到服务器时,它令人不安,它显示损坏的页面,如图 图像

I have create a website in wordpress, it was working properly on localhost without any disturbance.But when i deployed same folder to server then it was disturbing , it shows broken pages as shown in the image image

请为我找到解决方案谢谢

please find the solution for me thank you

推荐答案

您必须在 wp_options 表中更改您的站点 url 和主页 url.或者您可以在 wp_config 中将它们定义为

You have to change your site url and home url in the wp_options table. or you can define them in your wp_config as

define('WP_SITEURL', 'http://your-website.com');

define('WP_HOME', 'http://your-website.com');

转到 phpmyadmin 并使用您的 URL (http://your-website.com) 更改 wp_options 表中的 siteurl 和 home 条目.

Go to phpmyadmin and change siteurl and home entry from wp_options table with your URL(http://your-website.com).

这篇关于本地站点正常,但是当我们在服务器上部署相同的文件夹时......它显示损坏的页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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