Title.
After installing the Discuz locally, and then moving the discuz to the server, where the server is bound to open the domain name, so strange things appear: This domain name always specify a local address: http://localhost/open/upload/ Portal.php?mod=list&catid=1
Now the problem is: I removed the domain name analysis, the server is also deleted all the things.
Mobile phone to access this domain is empty.
(now I have this domain name resolved to the server, now I open the domain through the phone can see Hello World and a few garbled symbols.)
But the main question is: I enter this domain name on the local computer, or jump to the local address: http://localhost/open/upload/portal.php?mod=list&catid=1
I only know that modifying the Hosts file can place a domain name pointing to the local, but the problem is that the hosts file on my computer has not been modified. Why would you jump to local?
Add: Thanks to everyone who answers and comments, the final question is simply the reason for the browser cache. Because before I changed a browser tried, so I have not suspected is a cache problem. But it seems that you are still connecting to the server when you use that browser.
Just now I changed another browser to try and found that it would not.
It's just, it's not quite clear. After installing Discuz locally, which settings have been updated, so that it will jump to the home page after uploading the server?!
Reply content:
Title.
After installing the Discuz locally, and then moving the discuz to the server, where the server is bound to open the domain name, so strange things appear: This domain name always specify a local address: http://localhost/open/upload/ Portal.php?mod=list&catid=1
Now the problem is: I removed the domain name analysis, the server is also deleted all the things.
Mobile phone to access this domain is empty.
(now I have this domain name resolved to the server, now I open the domain through the phone can see Hello World and a few garbled symbols.)
But the main question is: I enter this domain name on the local computer, or jump to the local address: http://localhost/open/upload/portal.php?mod=list&catid=1
I only know that modifying the Hosts file can place a domain name pointing to the local, but the problem is that the hosts file on my computer has not been modified. Why would you jump to local?
Add: Thanks to everyone who answers and comments, the final question is simply the reason for the browser cache. Because before I changed a browser tried, so I have not suspected is a cache problem. But it seems that you are still connecting to the server when you use that browser.
Just now I changed another browser to try and found that it would not.
It's just, it's not quite clear. After installing Discuz locally, which settings have been updated, so that it will jump to the home page after uploading the server?!
Landlord can ping your domain name, look at the return IP,
Clear the browser cache or try a different browser.
You look at the domain name on the server pointing to the/etc/hosts in this file.
It is possible that the domain name on the server points to localhost and localhost does not point to 127.0.0.1, causing you to point to the Local on each visit
I think this question is probably the reason why you install DZ locally, pay attention to this detail. So it could be an application domain name or a related configuration item where your local URL has been written to the database. such as the configuration of UC, you can search under whether there is your local URL
Change the address in DZ to your domain name and put it on the server.