Chrome 中的自定义域
我已经为我的本地计算机设置了一个虚拟主机文件,其中我使用一个带有一堆子域(rainier.cascade.mtn、hood.cascade.mtn 等)的组成域(cascade.mtn)。在其他所有浏览器中,我都可以很好地访问这些域,但在 Chrome 中,它只会将我带到 Google 搜索。
有没有办法强制Chrome识别cascade.mtn域?
I've got a vhosts file set up for my local machine where I use a made up domain (cascade.mtn) with a bunch of subdomains (rainier.cascade.mtn, hood.cascade.mtn, etc). In every other browser I can hit those domains just fine but in Chrome it just takes me to a Google search.
Is there anyway to force Chrome to recognized the cascade.mtn domain?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
老问题,但发布答案,因为我遇到了同样的事情。
如果您在 URL 末尾添加尾部斜杠 (
/
),它会提示 Chrome 将其视为 URL,这正是您想要的。从那时起,它将“了解到”这确实是一个有效的 URL,并且您将不再需要尾部斜杠。Old question, but posting answer since I ran into the same thing.
If you add a trailing slash (
/
) to the end of the URL, it will hint Chrome to treat it as a URL, which is what you want. From that point, it will 'learn' that that is indeed a valid URL and you won't require the trailing slash anymore.