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.

Like this Article?

Login to comment.

Your Opinion Matters

... but we need to know what you're thinking!

I'm Brad Markle, your friendly Community Support technician, and I wrote the article you're looking at now. I like to think it's perfect, but I'm sure you have some suggestions. Please, let me know what they are!

Feedback
Your Email Address
Because we'd like to talk with you!

Latest Questions

If you need some help, submit your question to our Community!
We guarantee a response within 60 minutes (8am - 9pm EST, Monday - Friday)
Ask a Question!
Recent Questions
  1. Configuring Mandrill SFP / DKIM settings
  2. Why can't I access the admin page?
  3. ftp application

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!