InMotion Hosting Support Center

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, 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.

Was this article helpful?

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

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

n/a Points
2017-11-03 12:17 pm

Thank you for the information!

2,466 Points
2017-11-03 12:58 pm
You are welcome! Glad we could help.

Post a Comment

Email Address:
Phone Number:

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

2 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


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:
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!