Wordpress将仅在本地主机上完全加载 [英] Wordpress will only fully load on localhost

查看:78
本文介绍了Wordpress将仅在本地主机上完全加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在wamp服务器上设置了wordpress,通过localhost加载网页时,它将始终完全加载整个页面,但是当我尝试通过任何其他计算机访问该网页时(即使该计算机已连接到LAN) ),它将仅像HTML模板一样呈现,不呈现任何图片,仅呈现框轮廓,

I have recently set up wordpress on my wamp server and when loading up the webpage through localhost it will always fully load up the entire page but when i try to access the webpage through anyother computer (even if the computer is connected to LAN ) it will only render like an HTML template, no pictures are rendered, only the box outlines,

似乎该站点不在联机时加载CSS文件,但是我想知道为什么它可以在本地主机上工作.

It appears that the site is not loading up css files while online, but then i am wondering why it would work on the local host.

我尝试从wordpress.org重新安装wordpress,并仔细阅读说明并尝试在网上寻找一些答案,但结果空白

I have tried re installing wordpress from wordpress.org, and fully looked at the instructions and have tried to look online for some answers, but came up blank

计算机信息:

WAMP服务器 Dreamweaver

WAMP server Dreamweaver

*问题可能出在站点设置过程中的Dreamweaver吗?

*could the problem be from dreamweaver during the site set up?

推荐答案

在网络上其他计算机上进行本地主机安装的方法需要做几件事.

The way to make a localhost install work on other computers on the network you need to do a couple things.

  1. 本地主机需要IP或伪造域的专用地址.

  1. The localhost needs a dedicated address either IP or fake domain.

WordPress需要使用该地址进行配置

WordPress needs to be configured with that address

需要告知其他机器该地址的位置,通常在主机配置文件中,例如

the other machines need to be told where that address is, usually in the hosts configuration file like

192.168.30.1 wp.dev

192.168.30.1 wp.dev

其中上面是使用WAMP分配给您的本地主机的网络IP,而wp.dev是伪造的dev域. 这几乎需要在所有计算机上进行设置,以便他们知道主机的位置.

where the above is an network IP assigned to your localhost with WAMP and wp.dev is the fake dev domain. This pretty much needs to be set on all machines so they know where the host lives.

这篇关于Wordpress将仅在本地主机上完全加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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