The domain name is inexplicably directed to the local device, but the hosts does not specify this domain name. What is the problem?

Source: Internet
Author: User
As the question. After Discuz was installed locally, the Discuz was moved to the server. Here the domain name bound to the server was opened, so it was strange that the domain name always specified a local address: localhostopenuploadportal. php? Modlist & amp; cat.

After Discuz was installed locally, the Discuz was moved to the server. Here the domain name bound to the server was opened, so it was strange that the domain name always specified a local address: http: // localhost/open/upload/portal. php? Mod = list & catid = 1

Now the problem is: I removed the domain name resolution and deleted all the items on the server.
The domain name accessed by the mobile phone is empty.
(Now I have resolved this domain name to the server. Now I can open this domain name through my mobile phone and see the Hello World and several garbled characters.

But the main problem is: when I enter this domain name on my local computer, I still jump to the local address: http: // localhost/open/upload/portal. php? Mod = list & catid = 1

I only know that the modification of the hosts file can place a Domain Name Pointing to the local, but the problem is that the hosts file in my computer is not modified. Why do I still jump to the local device?

Supplement: thanks to everyone who answers and comments, the final question is only the reason for browser cache. I have tried a new browser before, so I have never suspected that it is a cache problem. But it seems that the browser is still connected to the server.

I tried another browser just now and found that this would not happen.

However, I still don't quite understand which settings have been updated after Discuz is locally installed, so that it will jump to the local page after the server is uploaded ?!

Reply content:

As the question.

After Discuz was installed locally, the Discuz was moved to the server. Here the domain name bound to the server was opened, so it was strange that the domain name always specified a local address: http: // localhost/open/upload/portal. php? Mod = list & catid = 1

Now the problem is: I removed the domain name resolution and deleted all the items on the server.
The domain name accessed by the mobile phone is empty.
(Now I have resolved this domain name to the server. Now I can open this domain name through my mobile phone and see the Hello World and several garbled characters.

But the main problem is: when I enter this domain name on my local computer, I still jump to the local address: http: // localhost/open/upload/portal. php? Mod = list & catid = 1

I only know that the modification of the hosts file can place a Domain Name Pointing to the local, but the problem is that the hosts file in my computer is not modified. Why do I still jump to the local device?

Supplement: thanks to everyone who answers and comments, the final question is only the reason for browser cache. I have tried a new browser before, so I have never suspected that it is a cache problem. But it seems that the browser is still connected to the server.

I tried another browser just now and found that this would not happen.

However, I still don't quite understand which settings have been updated after Discuz is locally installed, so that it will jump to the local page after the server is uploaded ?!

The landlord can ping your domain name and check the returned IP address,
Clear the browser cache or try another browser.

Take a look at the Domain Name Pointing to on the server, in the/etc/hosts file.
It may be that the domain name on the server points to localhost, but localhost does not point to 127.0.0.1, which leads

I think this problem is probably because you have installed dz locally. Pay attention to this details. Therefore, it may be that the application domain name or your local url has been written into the database. For example, for the configuration of uc, you can search for whether your local url exists.

Change the address in dz to your domain name and place it on the server.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.