{"id":10747,"date":"2020-11-30T08:34:24","date_gmt":"2020-11-30T08:34:24","guid":{"rendered":"https:\/\/www.milesweb.in\/hosting-faqs\/?p=10747"},"modified":"2020-11-30T08:34:24","modified_gmt":"2020-11-30T08:34:24","slug":"manage-hacked-wordpress-website","status":"publish","type":"post","link":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/","title":{"rendered":"How to Manage Your Hacked WordPress Website?"},"content":{"rendered":"<p>In this article, we\u2019ll include the most common cases of WordPress hacks, ways to spot them, and the different ways to resolve them. If you face such a situation, it is recommended that you contact a professional web developer for further assistance.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note:<\/strong><\/p>\n<ul>\n<li>Ensure that you take a backup of your website before making any changes. If you face any issues, contact our 24\/7 Live Support for assistance.<\/li>\n<li>To ensure that your WordPress website does not get hacked in the future, ensure to scan your hosting account with an antivirus, remove any malicious or suspicious files, and update all the themes and plugins of your website to their latest versions.<\/li>\n<\/ul>\n<\/div>\n<\/div>\n<div class=\"skrlto-container\">\n<div class=\"skrlto-header-title\">Table of Contents<\/div>\n<div class=\"skrlto-links-wrapper\">\n<div class=\"skroll-button\" data-skrolllto=\"1WPHacked\">1. Missing Default Files<\/div>\n<div class=\"skroll-button\" data-skrolllto=\"2WPHacked\">2. Use Wordfence Plugin<\/div>\n<div class=\"skroll-button\" data-skrolllto=\"3WPHacked\">3. Replace the Missing Files<\/div>\n<div class=\"skroll-button\" data-skrolllto=\"4WPHacked\">4. Replace All the Default WordPress Files<\/div>\n<div class=\"skroll-button\" data-skrolllto=\"5WPHacked\">5. Missing Theme or Plugin Files<\/div>\n<div class=\"skroll-button\" data-skrolllto=\"6WPHacked\">6. Malicious Redirects<\/div>\n<\/div>\n<\/div>\n<h3 id=\"1WPHacked\">1. Missing Default Files<\/h3>\n<p>This issue often occurs due to a variety of factors but the most common one is when your installation files are infected with malicious code.<\/p>\n<p>If your WordPress default files get infected, you might get the below errors:<\/p>\n<ul>\n<li>A blank page<\/li>\n<li>A 500 error page<\/li>\n<li>A page with the message: \u201cThis site is experiencing technical issues\u201d (If your WordPress version is 5.2.2 or further), etc.<\/li>\n<\/ul>\n<p>For resolving this issue, follow the instructions below:<\/p>\n<ul>\n<li><strong>Checking the error_log file of your website<\/strong><\/li>\n<\/ul>\n<p>For searching the exact cause of the issue on your website, check the error_log file. This file holds records of any critical website errors that have occurred.<\/p>\n<p>You can find this file in the root folder of the installation:<\/p>\n<ul>\n<li>If your website\u2019s domain name is the <strong>main domain name<\/strong>, then its root folder is public_html. For checking this, go to your <strong>cPanel Account &gt;&gt; Files Manager<\/strong> menu.<\/li>\n<li>If your domain name is an addon, check its root folder in your <strong>cPanel account &gt;&gt; Addon domains<\/strong> menu. Simply click on the link in front of the domain name as shown below:<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10749\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min-1024x189.png\" alt=\"\" width=\"1024\" height=\"189\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min-1024x189.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min-300x55.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min-768x142.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min.png 1420w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Then you will be redirected to the root folder of the domain name.<\/p>\n<p>Here, you can search for the error_log file. If the file is present follow the below steps:<\/p>\n<p>1. Right-click on <strong>error_log file &gt;&gt;<\/strong> click on <strong>View<\/strong> to check it:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10750\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/error-logs-view-min.png\" alt=\"\" width=\"321\" height=\"311\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/error-logs-view-min.png 321w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/error-logs-view-min-300x291.png 300w\" sizes=\"auto, (max-width: 321px) 100vw, 321px\" \/><\/p>\n<p>2. In the error_log file, you might see this message:<strong> \u201cNo such file or directory in&#8230;\u201d<\/strong> as well as the path to the missing file. This error represents that the file required for the actual work of the website is missing.<\/p>\n<p>For example, here there is one such file:<\/p>\n<p><strong>\/home\/cPuser\/public_html\/wp-settings.php<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10752\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/error-log-file1-min-1024x251.jpg\" alt=\"\" width=\"1024\" height=\"251\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/error-log-file1-min-1024x251.jpg 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/error-log-file1-min-300x74.jpg 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/error-log-file1-min-768x189.jpg 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/error-log-file1-min.jpg 1271w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<ul>\n<li><strong>Enabling display_errors PHP option<\/strong><\/li>\n<\/ul>\n<p>Suppose the error_log file is not present in the root folder of your website, it is possible to enable the display_errors PHP option via the Select PHP version menu in your cPanel account. When this option is enabled, you can see the error directly on your website.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note:<\/strong> For avoiding website vulnerabilities, the display_errors option needs to be disabled after the issue is resolved.<\/p>\n<\/div>\n<\/div>\n<p>1. For enabling this option, log in to your <strong>cPanel account &gt;&gt;<\/strong> <span id=\"ctl00_ctl00_ctl00_ctl00_base_content_web_base_content_home_content_page_content_left_ArticleInfoDisplayControl1\"><b>Select PHP Version<\/b> &gt;&gt; click on<b> Options<\/b><\/span>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10754\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-options-min.png\" alt=\"\" width=\"647\" height=\"281\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-options-min.png 647w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-options-min-300x130.png 300w\" sizes=\"auto, (max-width: 647px) 100vw, 647px\" \/><\/p>\n<p>2. Then, tick the checkbox in front of the <strong>display_errors option<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10757\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-display-errors1-min-806x1024.png\" alt=\"\" width=\"806\" height=\"1024\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-display-errors1-min-806x1024.png 806w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-display-errors1-min-236x300.png 236w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-display-errors1-min-768x976.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-display-errors1-min.png 871w\" sizes=\"auto, (max-width: 806px) 100vw, 806px\" \/><\/p>\n<p>3. In case the default files are missing, you will see one of the similar errors on your website:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10756\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-error-1024x114.png\" alt=\"\" width=\"1024\" height=\"114\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-error-1024x114.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-error-300x33.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-error-768x86.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/php-selector-error.png 1317w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>4. The above error represents that the default wp-settings.php file is missing.<\/p>\n<h3 id=\"2WPHacked\">2. Use Wordfence Plugin<\/h3>\n<p>If someone injects a malicious code in your blog\u2019s code, the Wordfence plugin helps you to find it. You simply need to install the plugin as below:<\/p>\n<p>Go to your WordPress blog dashboard, on the left-side menu click on <strong>Plugins &gt;&gt; Add New<\/strong>. Then search for <strong>Wordfence<\/strong> in the search box and click on <strong>Install<\/strong> button as shown below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10758\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordfence-install-min-1024x409.png\" alt=\"\" width=\"1024\" height=\"409\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordfence-install-min-1024x409.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordfence-install-min-300x120.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordfence-install-min-768x307.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordfence-install-min.png 1583w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>After the installation, click on the <strong>Activate<\/strong> button to activate the plugin.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10759\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/activate-min.png\" alt=\"\" width=\"455\" height=\"429\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/activate-min.png 455w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/activate-min-300x283.png 300w\" sizes=\"auto, (max-width: 455px) 100vw, 455px\" \/><\/p>\n<p>You can see the plugin in the list of <strong>Installed<\/strong> <strong>plugins<\/strong> once it gets activated.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10760\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/installed-plugin-list-min-1024x189.png\" alt=\"\" width=\"1024\" height=\"189\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/installed-plugin-list-min-1024x189.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/installed-plugin-list-min-300x55.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/installed-plugin-list-min-768x142.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/installed-plugin-list-min.png 1565w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>Then from the left-side menu, click on <strong>Wordfence &gt;&gt; Scan<\/strong>. This will open the Scan dashboard. Here click on the button <strong>Start New Scan<\/strong>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10761\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/scan-min-1024x547.png\" alt=\"\" width=\"1024\" height=\"547\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/scan-min-1024x547.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/scan-min-300x160.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/scan-min-768x410.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/scan-min.png 1361w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>This will scan the blog for malicious code and display the results. If there is a malicious code inserted in your blog, you can identify it as below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10762\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordfence-error-min-1024x328.png\" alt=\"\" width=\"1024\" height=\"328\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordfence-error-min-1024x328.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordfence-error-min-300x96.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordfence-error-min-768x246.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordfence-error-min.png 1161w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\nTo resolve this issue, it is needed to just clean the code highlighted in red color.<\/p>\n<h3 id=\"3WPHacked\">3. Replace the Missing Files<\/h3>\n<p>The file structure of WordPress CMS is pretty straightforward and so it is easy to do the replacement in just a few steps. It is recommended to replace default files because it will help in fixing all files that are actually corrupted by the virus. Ensure that you do it cautiously because replacing some files and folders might lead to data loss.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note:<\/strong> Ensure to take a backup of your website before making any changes. If you installed WordPress with the Softaculous Apps Installer, please follow the steps in this guide to create a backup.<\/p>\n<\/div>\n<\/div>\n<p>For replacing the missing WordPress files, follow the steps below:<\/p>\n<p>1. Log in to your <strong>cPanel Account &gt;&gt; Softaculous Apps Installer<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10763\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/softaculous-installer-min-1024x270.png\" alt=\"\" width=\"1024\" height=\"270\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/softaculous-installer-min-1024x270.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/softaculous-installer-min-300x79.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/softaculous-installer-min-768x202.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/softaculous-installer-min.png 1119w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>2. Now create a new installation for your website in the subfolder. This can be done by clicking on the <strong>WordPress icon &gt;&gt; Install<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10765\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-min-1024x541.png\" alt=\"\" width=\"1024\" height=\"541\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-min-1024x541.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-min-300x158.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-min-768x405.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-min.png 1324w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>3. Then you will get redirected to the installation menu. Select your website from the drop-down menu and type the name of the subfolder within the <strong>In Directory<\/strong> field. For example, here we will use <strong>fix<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10766\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-options-min-1024x492.png\" alt=\"\" width=\"1024\" height=\"492\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-options-min-1024x492.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-options-min-300x144.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-options-min-768x369.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-options-min.png 1308w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><strong>Please Note:<\/strong> When you replace all the default files, it will automatically upgrade your installation to the version of the <strong>\u201cfix\u201d<\/strong> installation. In case the current version of your WordPress website is crucial or if you want to only replace some of the files, ensure to check the version of your website in <strong>\/wp-includes\/version.php<\/strong> file and create the installation of the same version. Don\u2019t mix the files of the different versions as it will most likely affect the functionality of your website:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10767\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-version-min.png\" alt=\"\" width=\"840\" height=\"500\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-version-min.png 840w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-version-min-300x179.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-version-min-768x457.png 768w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/p>\n<p>You can change the version for the new installation in the installation window:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10769\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/change-wordpress-version1-min-1024x419.png\" alt=\"\" width=\"1024\" height=\"419\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/change-wordpress-version1-min-1024x419.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/change-wordpress-version1-min-300x123.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/change-wordpress-version1-min-768x315.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/change-wordpress-version1-min.png 1311w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>4. Scroll to the bottom of the page and click <strong>Install<\/strong> once you\u2019re done.<br \/>\n5. You will find your new installation files in the <strong>File Manager &gt;&gt;<\/strong> your domain name\u2019s root folder:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10770\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/fix-min.png\" alt=\"\" width=\"898\" height=\"368\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/fix-min.png 898w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/fix-min-300x123.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/fix-min-768x315.png 768w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><br \/>\n6. Double-click on the folder to open it. For replacing only the missing file (e.g. wp-settings.php), first find the file in the new installation folder:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10771\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-settings-min-1024x461.jpg\" alt=\"\" width=\"1024\" height=\"461\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-settings-min-1024x461.jpg 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-settings-min-300x135.jpg 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-settings-min-768x346.jpg 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-settings-min.jpg 1579w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\n7. Shift this file to the root folder of your website that should be fixed. Right-click on the file <strong>&gt;&gt; Move &gt;&gt;<\/strong> type the path to your website\u2019s root folder <strong>&gt;&gt; Move File(s)<\/strong>. (Here it is public_html folder):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10772\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-settings-move-min-1024x220.png\" alt=\"\" width=\"1024\" height=\"220\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-settings-move-min-1024x220.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-settings-move-min-300x65.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-settings-move-min-768x165.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-settings-move-min.png 1241w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10773\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/move-files-window-min.png\" alt=\"\" width=\"500\" height=\"342\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/move-files-window-min.png 500w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/move-files-window-min-300x205.png 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><br \/>\nThat\u2019s it! Now you have recovered the missing file and your website should be up.<\/p>\n<h3 id=\"4WPHacked\">4. Replace All the Default WordPress Files<\/h3>\n<p>1. Log in to the<strong> cPanel Account &gt;&gt; Softaculous Apps Installer<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10763\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/softaculous-installer-min-1024x270.png\" alt=\"\" width=\"1024\" height=\"270\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/softaculous-installer-min-1024x270.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/softaculous-installer-min-300x79.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/softaculous-installer-min-768x202.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/softaculous-installer-min.png 1119w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>2. In the subfolder, create a new installation for your website. For this, click on the<strong> WordPress icon &gt;&gt; Install<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10765\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-min-1024x541.png\" alt=\"\" width=\"1024\" height=\"541\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-min-1024x541.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-min-300x158.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-min-768x405.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-min.png 1324w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\n3. Then you will be redirected to the installation menu. Select your website from the drop-down menu and type the subfolder\u2019s name within the <strong>In Directory<\/strong> field. Here it will be <strong>fix<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10766\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-options-min-1024x492.png\" alt=\"\" width=\"1024\" height=\"492\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-options-min-1024x492.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-options-min-300x144.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-options-min-768x369.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-install-options-min.png 1308w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\n<strong>Please Note:<\/strong> When you replace all the default files, it will automatically upgrade your installation to the version of the \u201cfix\u201d installation. In case the current version of your WordPress website is crucial or if you want to only replace some of the files, ensure to check the website\u2019s version in \/wp-includes\/version.php file and then create the installation of the similar version. Don\u2019t mix the files of the different versions as it will most likely affect the functionality of your website:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10767\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-version-min.png\" alt=\"\" width=\"840\" height=\"500\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-version-min.png 840w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-version-min-300x179.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wordpress-version-min-768x457.png 768w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><br \/>\nYou can change the version for the new installation in the installation window:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10769\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/change-wordpress-version1-min-1024x419.png\" alt=\"\" width=\"1024\" height=\"419\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/change-wordpress-version1-min-1024x419.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/change-wordpress-version1-min-300x123.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/change-wordpress-version1-min-768x315.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/change-wordpress-version1-min.png 1311w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\n4. Scroll to the bottom of the page and click <strong>Install<\/strong> once you\u2019re done.<br \/>\n5. You will find your new installation files in the <strong>File Manager &gt;&gt;<\/strong> your domain name\u2019s root folder:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10770\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/fix-min.png\" alt=\"\" width=\"898\" height=\"368\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/fix-min.png 898w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/fix-min-300x123.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/fix-min-768x315.png 768w\" sizes=\"auto, (max-width: 898px) 100vw, 898px\" \/><br \/>\n6. Remove the <strong>wp-config.php files, .htaccess, and wp-content folder<\/strong> of the newly-created installation. These files are responsible for the content and performance of your website:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10775\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/delete-wp-htaccess-min-1-1024x575.png\" alt=\"\" width=\"1024\" height=\"575\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/delete-wp-htaccess-min-1-1024x575.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/delete-wp-htaccess-min-1-300x168.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/delete-wp-htaccess-min-1-768x431.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/delete-wp-htaccess-min-1.png 1261w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10777\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/trash-1-min.jpg\" alt=\"\" width=\"497\" height=\"194\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/trash-1-min.jpg 497w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/trash-1-min-300x117.jpg 300w\" sizes=\"auto, (max-width: 497px) 100vw, 497px\" \/><br \/>\n7. Shift the other files to the root folder of your website. For this, click <strong>Select All &gt;&gt; Move &gt;&gt;<\/strong> type the path to your website\u2019s root folder:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10778\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/select-move-min-1024x576.png\" alt=\"\" width=\"1024\" height=\"576\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/select-move-min-1024x576.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/select-move-min-300x169.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/select-move-min-768x432.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/select-move-min.png 1600w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10779\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/move-files-window-1-min.jpg\" alt=\"\" width=\"500\" height=\"342\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/move-files-window-1-min.jpg 500w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/move-files-window-1-min-300x205.jpg 300w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><br \/>\nThat\u2019s it! You can now check your website.<\/p>\n<p>In case your website isn\u2019t working properly, please check the error_log again. Most likely the reason for this is missing files of a theme or plugin.<\/p>\n<h3 id=\"5WPHacked\">5. Missing Theme or Plugin Files<\/h3>\n<p>This issue often occurs due to different factors and one of the most common is due to maliciously infected installation files.<\/p>\n<p>If your WordPress plugin files are missing, you might see the below errors:<\/p>\n<ul>\n<li>A blank page<\/li>\n<li>A 500 error page<\/li>\n<li>A page displaying the message: \u201cThis site is experiencing technical issues\u201d (starting from 5.2.2 WordPress version), etc.<\/li>\n<li>A \u201cbroken\u201d page<\/li>\n<\/ul>\n<p>One of these errors can also be found in the error_log file or on your website:<\/p>\n<pre class=\"lang:default decode:true\">PHP Fatal error: Uncaught Error: Call to undefined function sample_function() in \/home\/cPaneluser\/public_html\/wp-content\/themes\r\n\/sampletheme\/header.php:8<\/pre>\n<p>For example, a broken plugin error looks as below:<\/p>\n<pre class=\"lang:default decode:true\">PHP Warning: require(\/home\/cPaneluser\/public_html\/wp-content\/plugins\/woocommerce\/includes\/wc-account-functions.php): failed to open \r\nstream: No such file or directory in \/home\/cPaneluser\/public_html\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php \r\non line 26\r\n\r\nPHP Fatal error: require(): Failed opening required '\/home\/cPaneluser\/public_html\/wp-content\/plugins\/woocommerce\/includes\/wc-account\r\n-functions.php' (include_path='.:\/opt\/alt\/php72\/usr\/share\/pear') in \/home\/cPaneluser\/public_html\/wp-content\/plugins\/woocommerce\r\n\/includes\/wc-core-functions.php on line 26<\/pre>\n<p>This error indicates that the file required for the plugin to work is missing:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10798\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/missing-theme-plugin-error-min-1024x222.jpg\" alt=\"\" width=\"1024\" height=\"222\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/missing-theme-plugin-error-min-1024x222.jpg 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/missing-theme-plugin-error-min-300x65.jpg 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/missing-theme-plugin-error-min-768x167.jpg 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/missing-theme-plugin-error-min.jpg 1590w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>For replacing the missing file, you will need to re-install the affected theme or plugin.<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note:<\/strong> The wp-vcd.php virus is the main cause of the absence of the functions.php file in your website\u2019s theme which you can find it the \/wp-includes folder.<\/p>\n<\/div>\n<\/div>\n<p>To verify if the newly-installed theme isn\u2019t affected, remove the file in advance if it is present or replace all the default installation files to be safe.<\/p>\n<h3 id=\"6WPHacked\">6. Malicious Redirects<\/h3>\n<p>When your website is affected by the virus, it may start redirecting to malicious pages:<\/p>\n<div class=\"kb-wisdom-wrapr kb-wisdom-info kb-wisdom-wrapr-blue\">\n<div class=\"kb-wisdom-col kb-wisdom-col-icon\">\n<div class=\"kb-wisdom-icon\">\n<div><\/div>\n<\/div>\n<\/div>\n<div class=\"kb-wisdom-col kb-wisdom-col-content\">\n<p><strong>Note:<\/strong> If you don\u2019t want a virus to enter your PC, avoid clicking on any website links you are redirected to.<\/p>\n<\/div>\n<\/div>\n<p>Mostly a non-secure theme or plugin are the reasons behind such an issue and this enables them to modify database URLs and the files of your website.<\/p>\n<p>The solution to this issue is as listed below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10783\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/malicious-error-min-1024x669.jpg\" alt=\"\" width=\"1024\" height=\"669\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/malicious-error-min-1024x669.jpg 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/malicious-error-min-300x196.jpg 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/malicious-error-min-768x502.jpg 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/malicious-error-min.jpg 1238w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\n1. Search your database name in the<strong> wp-config.php<\/strong> file. Navigate to <strong>cPanel &gt;&gt; Databases section &gt;&gt; phpMyAdmin<\/strong> menu:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10784\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/phpmyadmin-min-1024x106.png\" alt=\"\" width=\"1024\" height=\"106\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/phpmyadmin-min-1024x106.png 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/phpmyadmin-min-300x31.png 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/phpmyadmin-min-768x79.png 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/phpmyadmin-min.png 1121w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\n2. Click on <strong>+<\/strong> icon next to your cPanel username to check the list of the databases, find the database for your WordPress website, and click on it. Then, select<strong> wp_options<\/strong> table (<strong>wp_<\/strong> is the database prefix and it can vary for your installation):<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10787\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-options-1-min-1024x179.jpg\" alt=\"\" width=\"1024\" height=\"179\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-options-1-min-1024x179.jpg 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-options-1-min-300x52.jpg 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-options-1-min-768x134.jpg 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/wp-options-1-min.jpg 1486w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\n3. In the <strong>option_value<\/strong> fields, verify the values of siteurl and home rows:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-10788\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/options-details-1-min.jpg\" alt=\"\" width=\"697\" height=\"97\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/options-details-1-min.jpg 697w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/options-details-1-min-300x42.jpg 300w\" sizes=\"auto, (max-width: 697px) 100vw, 697px\" \/><br \/>\n4. Replace the incorrect fields using your actual domain name.<br \/>\n5. Find similar links in your database and replace them by following this guide.<br \/>\n6. Replace the<strong> .htaccess<\/strong> file of your website temporarily with the default one. You can <strong>rename the existing one<\/strong> and create a <strong>new .htaccess<\/strong> file.<br \/>\nFor renaming the existing one, double-click on the file, rename it, and click <strong>Enter<\/strong> to save. To create a new one, click <strong>+File &gt;&gt;<\/strong> type<strong> .htaccess &gt;&gt;<\/strong> <strong>Create New File<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-large wp-image-10789\" src=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/htaccess-old-1-min-1024x291.jpg\" alt=\"\" width=\"1024\" height=\"291\" srcset=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/htaccess-old-1-min-1024x291.jpg 1024w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/htaccess-old-1-min-300x85.jpg 300w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/htaccess-old-1-min-768x218.jpg 768w, https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/htaccess-old-1-min.jpg 1266w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><br \/>\nAfter doing this, right click on the newly-created file <strong>&gt;&gt; Edit &gt;&gt;<\/strong> paste the rule below<strong> &gt;&gt;<\/strong> click <strong>Save Changes<\/strong>:<\/p>\n<pre class=\"lang:default decode:true \"># BEGIN WordPress\r\nRewriteEngine On\r\nRewriteBase \/\r\nRewriteRule ^index\\.php$ - [L]\r\nRewriteCond %{REQUEST_FILENAME} !-f\r\nRewriteCond %{REQUEST_FILENAME} !-d\r\nRewriteRule . \/index.php [L]\r\n# END WordPress<\/pre>\n<p>If your website is still redirecting, try replacing the default files.<\/p>\n<p>Temporarily disabling all the plugins might also help. In case one of them is causing the redirect, enable them one-by-one to find which one is causing this issue.<\/p>\n<p>That\u2019s it!<\/p>\n<p>Hope all these solutions will help you to bring your WordPress website back to normal.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this article, we\u2019ll include the most common cases of WordPress hacks, ways to spot them, and the different ways to resolve them. If you face such a situation, it is recommended that you contact a professional web developer for further assistance. Note: Ensure that you take a backup of your website before making any [&hellip;]<\/p>\n","protected":false},"author":16,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[749,78,1691,178],"class_list":["post-10747","post","type-post","status-publish","format-standard","placeholder-for-hentry","category-wordpress-faq","tag-hacked-wordpress-website","tag-wordpress-2","tag-wordpress-hacked-solutions","tag-wordpress-website"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Manage Your Hacked WordPress Website?<\/title>\n<meta name=\"description\" content=\"Is your WordPress website hacked? Check these solutions to manage your hacked WordPress website and bring your website back to normal.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Manage Your Hacked WordPress Website?\" \/>\n<meta property=\"og:description\" content=\"Is your WordPress website hacked? Check these solutions to manage your hacked WordPress website and bring your website back to normal.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Hosting FAQs by MilesWeb\" \/>\n<meta property=\"article:published_time\" content=\"2020-11-30T08:34:24+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min-1024x189.png\" \/>\n<meta name=\"author\" content=\"Pallavi Godse\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Pallavi Godse\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"10 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/\"},\"author\":{\"name\":\"Pallavi Godse\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"headline\":\"How to Manage Your Hacked WordPress Website?\",\"datePublished\":\"2020-11-30T08:34:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/\"},\"wordCount\":1895,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min-1024x189.png\",\"keywords\":[\"hacked wordpress website\",\"WordPress\",\"wordpress hacked solutions\",\"WordPress website\"],\"articleSection\":[\"WordPress FAQ\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/\",\"name\":\"How to Manage Your Hacked WordPress Website?\",\"isPartOf\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min-1024x189.png\",\"datePublished\":\"2020-11-30T08:34:24+00:00\",\"author\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\"},\"description\":\"Is your WordPress website hacked? Check these solutions to manage your hacked WordPress website and bring your website back to normal.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#primaryimage\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min.png\",\"contentUrl\":\"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min.png\",\"width\":1420,\"height\":262},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Manage Your Hacked WordPress Website?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#website\",\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/\",\"name\":\"Web Hosting FAQs by MilesWeb\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945\",\"name\":\"Pallavi Godse\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g\",\"caption\":\"Pallavi Godse\"},\"description\":\"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.\",\"sameAs\":[\"https:\/\/www.milesweb.in\"],\"url\":\"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Manage Your Hacked WordPress Website?","description":"Is your WordPress website hacked? Check these solutions to manage your hacked WordPress website and bring your website back to normal.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/","og_locale":"en_US","og_type":"article","og_title":"How to Manage Your Hacked WordPress Website?","og_description":"Is your WordPress website hacked? Check these solutions to manage your hacked WordPress website and bring your website back to normal.","og_url":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/","og_site_name":"Web Hosting FAQs by MilesWeb","article_published_time":"2020-11-30T08:34:24+00:00","og_image":[{"url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min-1024x189.png","type":"","width":"","height":""}],"author":"Pallavi Godse","twitter_misc":{"Written by":"Pallavi Godse","Est. reading time":"10 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#article","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/"},"author":{"name":"Pallavi Godse","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"headline":"How to Manage Your Hacked WordPress Website?","datePublished":"2020-11-30T08:34:24+00:00","mainEntityOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/"},"wordCount":1895,"commentCount":0,"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min-1024x189.png","keywords":["hacked wordpress website","WordPress","wordpress hacked solutions","WordPress website"],"articleSection":["WordPress FAQ"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/","url":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/","name":"How to Manage Your Hacked WordPress Website?","isPartOf":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#primaryimage"},"image":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#primaryimage"},"thumbnailUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min-1024x189.png","datePublished":"2020-11-30T08:34:24+00:00","author":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945"},"description":"Is your WordPress website hacked? Check these solutions to manage your hacked WordPress website and bring your website back to normal.","breadcrumb":{"@id":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#primaryimage","url":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min.png","contentUrl":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-content\/uploads\/2020\/11\/modify-addon-domain-min.png","width":1420,"height":262},{"@type":"BreadcrumbList","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/manage-hacked-wordpress-website\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.milesweb.in\/hosting-faqs\/"},{"@type":"ListItem","position":2,"name":"How to Manage Your Hacked WordPress Website?"}]},{"@type":"WebSite","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#website","url":"https:\/\/www.milesweb.in\/hosting-faqs\/","name":"Web Hosting FAQs by MilesWeb","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.milesweb.in\/hosting-faqs\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/7e3952607fa9eb4e82fea9f7cad9c945","name":"Pallavi Godse","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.milesweb.in\/hosting-faqs\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/3602d0ac1ab89332aea8205dcf474af4ff4eb319cfd584544038908cd5e4c966?s=96&d=blank&r=g","caption":"Pallavi Godse"},"description":"Pallavi is a Digital Marketing Executive at MilesWeb and has an experience of over 4 years in content development. She is interested in writing engaging content on business, technology, web hosting and other topics related to information technology.","sameAs":["https:\/\/www.milesweb.in"],"url":"https:\/\/www.milesweb.in\/hosting-faqs\/author\/pallavi\/"}]}},"_links":{"self":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/10747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/users\/16"}],"replies":[{"embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/comments?post=10747"}],"version-history":[{"count":11,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/10747\/revisions"}],"predecessor-version":[{"id":10799,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/posts\/10747\/revisions\/10799"}],"wp:attachment":[{"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/media?parent=10747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/categories?post=10747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.milesweb.in\/hosting-faqs\/wp-json\/wp\/v2\/tags?post=10747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}