Mediawiki keeps redirecting to old IP after the server got a new IP
by taumuco from LinuxQuestions.org on (#5SQK6)
I have installed mediawiki at home and it has worked without issues. But recently I changed ip addresses of my rasperry pi's so it would make more sense. raspberry-pi-1 would get 192.168.1.101 and raspberry-pi-2 would get 192.168.1.102, etc.
The mac addresses are entered into the home router to lock it down, so the raspberry pi's are still set up for dynamic ip's. Not sure if it's relevant.
But now when I go to the mediawiki page like http://192.168.1.101/mediawiki, it takes a long time because it tries to redirect to http://192.168.1.2/mediawiki/index.php/Frontpage, which was the old url for the frontpage. It should redirect to 101 and not 2. It's with every redirect, like after making a change to a wiki page to save it, the change is saved, but then it times out because it is redirecting to the old ip again.
The system is Ubuntu Server 21.04. I am not sure if this is a linux- or mediawiki-issue.
The mac addresses are entered into the home router to lock it down, so the raspberry pi's are still set up for dynamic ip's. Not sure if it's relevant.
But now when I go to the mediawiki page like http://192.168.1.101/mediawiki, it takes a long time because it tries to redirect to http://192.168.1.2/mediawiki/index.php/Frontpage, which was the old url for the frontpage. It should redirect to 101 and not 2. It's with every redirect, like after making a change to a wiki page to save it, the change is saved, but then it times out because it is redirecting to the old ip again.
The system is Ubuntu Server 21.04. I am not sure if this is a linux- or mediawiki-issue.