Site not opening

Website URL : foodnjoy.rf.gd

Error Message : 404 Not Found

1 Like

Normally if it’s a 404 error you should be redirected to Infinityfree’s 404 page. But this should still help you:

4 Likes

do you have an index.php or index.html file?

2 Likes

I checked your site and I see there is an index.php file there. I also had a look inside the file, and I see code that looks like a normal WordPress index.php… along with some very suspicious looking code that’s definitely not part of a normal WordPress installation.

I’m pretty sure that your website has been infected with some kind of malware. And I suspect that the 404 error may be related to this malware.

In any case, before doing anything else, I strongly recommend to first ensure that your website is clear of any malware. That means rebuilding it from a fresh set of files, it’s likely that many files in your WordPress site are infected.

It’s a bit too much for me to write down on my own, but here are some AI generated (but vetted and adjusted by me) instructions on how to proceed:


:wrench: Cleaning and Reinstalling Your WordPress Site (InfinityFree)

If your WordPress site has been infected with malware, the best approach is to delete all files and reinstall everything from clean, trusted sources. You can safely reuse your database, but not the files.


:white_check_mark: What You Will Do

  • Backup the database only
  • Delete all files from your site
  • Reinstall WordPress using Softaculous
  • Reinstall a clean theme and plugins from trusted sources
  • Import the database backup

1. :counterclockwise_arrows_button: Backup the Database (Only)

  1. Log in to the InfinityFree control panel.
  2. Go to phpMyAdmin.
  3. Select your database on the left.
  4. Click the Export tab.
  5. Choose Quick and format SQL.
  6. Click Go to download the .sql file.

:warning: Do not back up your WordPress files — they may be infected.


2. :broom: Delete All Files from Your Website

  1. In the InfinityFree control panel, open File Manager.
  2. Go to the htdocs directory.
  3. Select all files and folders and delete them.

:white_check_mark: File Manager is more reliable than FTP on InfinityFree for bulk deletion.


3. :counterclockwise_arrows_button: Reinstall WordPress (Using Softaculous)

  1. In the control panel, scroll down to Softaculous Apps Installer.
  2. Click on WordPress.
  3. Click Install.
  4. Choose the correct domain and installation directory (leave it blank to install to the root).
  5. Set a new admin username and password.
  6. Click Install.

:white_check_mark: This installs a clean, safe version of WordPress.


4. :card_file_box: Restore the Database

If you’re using the same database:

  1. Go back to phpMyAdmin.
  2. Select your database.
  3. (Optional) Drop all existing tables to avoid conflicts:
    • Check all tables > Select Drop > Confirm.
  4. Click the Import tab.
  5. Upload your .sql backup file and click Go.

5. :artist_palette: Reinstall Theme and Plugins

  1. Log in to your WordPress admin dashboard.
  2. Go to Appearance > Themes > Install your theme using a clean copy from the official source.
  3. Go to Plugins > Add New and reinstall only trusted, up-to-date plugins.

:warning: Do not reuse old or pirated plugins/themes — they often contain malware.


6. :white_check_mark: Done! Check Your Site

  • Visit your site and verify everything is working.
  • Log in to the admin area and make sure content is restored.
  • Check your pages, posts, menus, and settings.

:memo: Summary

  • Database backed up and restored
  • Files deleted
  • WordPress reinstalled via Softaculous
  • Clean themes and plugins installed
  • Site verified
5 Likes

Reverse that. File Manager isn’t very reliable when it comes down to Bulk File Deletion. Use FileZilla instead.

When you remove files, I would suggest deleting the htdocs folder of your site, then re-create it once deletion is done. I find this to be the easiest method.

6 Likes

For uploads, yes. For deleting entire directories, the file manager is actually a lot faster than FileZilla. The file manager (seems to) just delete the directory, but FileZilla actually goes through the directories and deletes the files one by one, which can be quite slow for a big website.

But just deleting the htdocs folder and recreating it is indeed the faster method.

6 Likes

And, no, it doesn’t (just) delete the folder. It may be that the File Manager is faster with deletion. (In my experience, this is never the case, even with self-hosted Monsta FTP).

No, in FTP, you generally cannot directly delete a folder without first deleting its contents. AI-Generated answer

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.