A common technique for hackers is to target index files, such as index.php or index.html. Because index files usually load first when a website is visited, a hacked index file gives hackers a higher probability of their message / malicious code being loaded most often.

If you're attempting to restore your WordPress site after a recent hack and need to restore your index files, it may not be as hard as you think. Most index files in WordPress are either:

  1. core WordPress files
  2. theme files

If you're missing any core WordPress files, such as YourDomain.com/index.php, you can simply download a copy of the version of WordPress you're running and upload that index.php file to your account.

If you're missing an index.php file from your theme, you can reinstall your theme again.

If you've made any changes to your index.php files, these techniques will not work for you. The average user however will not ever edit WordPress php files directly, so restoring hacked index.php files should be a simple procedure.

Did you find this article helpful?

We value your feedback!

Why was this article not helpful? (Check all that apply)
The article is too difficult or too technical to follow.
There is a step or detail missing from the instructions.
The information is incorrect or out-of-date.
It does not resolve the question/problem I have.
How did you find this article?
Please tell us how we can improve our Support Center:
Email Address
Optional, but our team may contact you for more information.
Like this Article?

Post a Comment

Name:
Email Address:
Comment:
Are you a bot?
Submit

Please note: Your name and comment will be displayed, but we will not show your email address.

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!