从localhost到Intranet站点,使用XAMPP和wordpress

问题描述 投票:0回答:1

我想使用XAMPP和wordpress创建一个内部网(非常简单)的站点,所以我开始在我的PC上安装XAMPP(localhost)并用wordpress编写一个简单的页面:到目前为止一切都很好。现在我需要从局域网上的另一台PC访问我的站点(名为“sitetest01”),所以我在网上关注了一些教程,但没有成功。

1)我修改了\ Windows \ system32 \ drivers \ etc \ hosts,添加:192.168.10.126 intranet.local

2)C:\ xampp \ apache \ conf \ extra \ httpd-vhosts.conf,添加:

<VirtualHost *:80>
DocumentRoot "C:\xampp\htdocs\sitetest01"
ServerName intranet.local
</VirtualHost>

3)所以在我的电脑上的浏览器上,设置“intranet.local”它似乎工作....但是

it seems to work

4)..但点击链接“Ciao mondo”,发生错误和error

5)我该怎么办? Thx Andrea

wordpress xampp localhost intranet
1个回答
0
投票

你需要更改数据库中wordpress的url,例如在表格选项中你需要为你的ip选项更改网站的url:

options

第二张图片:

enter image description here

您还需要更改图像和文件夹的URL,所有更改de数据库。

© www.soinside.com 2019 - 2024. All rights reserved.