Website stopped working due to PHP issue

My PHP is outdated and needs to be updated to html. I have tried to update the index page but it continues to revert back to index.php.

How do I get my sites which used php in the past to update to html or is there another solution for non functioning 7.4 php. I updated to 8.4, it didn’t work and the host company converted it back to 7.4 thinking that would work, it did not.

Hi @Dean58,

You’ll need to manually delete index.php from the server. RapidWeaver will happily upload a new index.html for you, but it will never delete files. So if you change your file extension, the results will be that there are two index files (one php and the other html). Most browsers will load the php version if it finds both, with them assuming the html version is for older browsers.

So, in short:

  1. log on to your server (either using (S)FTP(S) or throguh your hoster’s console
  2. locate index.php in the root of your site
  3. delete it
  4. make sure there are no index.php files in the subdirectories (if you have any) - if there are, delete those too if there are also index.html files present in those same directories

Cheers,
Erwin