At my job we have Apache installed in an Ubuntu 16.04 lts server, the folder where the websites are is /var/www/html
We have a Drupal website in /var/www/html/version1 . The problem is that after copying the folder of the site and naming it /var/www/html/version2 to do some testing, we deleted /var/www/html/version2 and when going to localhost:8080/version1/ the links in that site inexplicably pointed to version2 ie localhost:8080/version2/news
That was yesterday, today the links are pointing correctly to localhost:8080/version1/news but If I access from a public ip that is opened, ie [public_ip]:8080/version1/ and click the links of the news it redirects to [public_ip]:8080/version2/news and obviously it gives page not found. If I go to [public_ip]:8080/version1/news directly it access it without any problem.
Where is the problem? I can provide the configuration files from apache or the sites. I appreciate any help!