Home  >  Article  >  Backend Development  >  使用hosts文件进行域名解析,怎么在登录该域名网站后浏览器地址不显示IP

使用hosts文件进行域名解析,怎么在登录该域名网站后浏览器地址不显示IP

WBOY
WBOYOriginal
2016-06-13 12:41:391004browse

使用hosts文件进行域名解析,如何在登录该域名网站后浏览器地址不显示IP
我在虚拟机安装了一个apache,部署了一个wordpress之后,在本地主机hosts文件上对域名进行了映射。
如 192.168.123.123 li.yyy.abc 

登录li.yyy.abc/phpmyadmin 之后,浏览器显示的仍然是该域名,
但是登录li.yyy.abc/wordpress 之后 浏览器显示的就是192.168.123.123/wordpress ?这是为什么,怎么才能像phpmyadmin一样,也显示域名?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn