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

WBOY
Release: 2016-06-13 12:41:39
Original
926 people have browsed it

使用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一样,也显示域名?

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!