0

I'm using Apartment gem, with Rails 5.0.0.1.

The URL that I'm trying to access is: lkm.harabiz.com, and accidentally, I attached www with it, and it became: www.lkm.harabiz.com, and now I can't access lkm.harabiz.com. Each time I try to access: lkm.harabiz.com, it enforces the URL: www.lkm.harabiz.com on Google Chrome.

The solution may be to delete the URL that starts with www from history in Chrome, or something to do with cookies, but what if a novice person accidentally types www as my client did, how would he solve the riddle without getting too much into the technical details?

Also, is there a way to redirect www.lkm.harabiz.com to lkm.harabiz.com through code?

4

1 回答 1

0

在 Chrome 中清除缓存应该可以解决您的问题,但您可能需要配置 DNS 规则以允许www.lkm.harabiz.com解析到与lkm.harabiz.com.

于 2017-06-13T13:34:17.120 回答