{"id":55843,"date":"2020-05-14T12:21:45","date_gmt":"2020-05-14T16:21:45","guid":{"rendered":"https:\/\/www.inmotionhosting.com\/support\/?p=55843"},"modified":"2021-10-08T11:16:30","modified_gmt":"2021-10-08T15:16:30","slug":"reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors","status":"publish","type":"post","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/","title":{"rendered":"How to Reset .Htaccess File"},"content":{"rendered":"<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"538\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile-1024x538.png\" alt=\"how to reset htaccess file title image\" class=\"wp-image-82553\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile-1024x538.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile-300x158.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile-768x403.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile.png 1200w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/figure>\n\n\n\n<p>Knowing how to reset <code>.htaccess<\/code> files on your server can save you lots of time. An <code>.htaccess<\/code> file is a configuration file Apache servers use to configure page loading and redirects. WordPress requires a specially configured <code>.htaccess<\/code> file to run, but many themes and plugins will edit the WordPress <code>.htaccess<\/code> file and may conflict with each other. The easiest way to resolve the situation is to reset the file and troubleshoot from there.<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><a href=\"#why\">Why Reset .Htaccess<\/a><\/li><li><a href=\"#deactivate\">How to Deactivate an .Htaccess File<\/a><\/li><li><a href=\"#default\">The Default .Htaccess Code<\/a><\/li><li><a href=\"#manual\">How to Reset .Htaccess File Manually<\/a><\/li><li><a href=\"#fix\">How to Fix .Htaccess File<\/a><\/li><li><a href=\"#restore\">How to Restore .Htaccess File<\/a><\/li><li><a href=\"#other\">What if The .Htaccess File Is Not the Problem<\/a><\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"why\">Why Reset .Htaccess<\/h2>\n\n\n\n<p>Why would you bother resetting your WordPress <code>.htaccess<\/code> file? Let\u2019s illustrate the reason with an example scenario \u2014 while installing a theme or plugin on your WordPress site, you encounter a confusing error message. According to the error, your PHP version is out of date. When you check your PHP version in <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/how-to-change-the-php-version-your-account-uses\/\">cPanel\u2019s MultiPHP Manager<\/a>, it looks like you\u2019re using the latest available! This sort of issue is just the kind of problem caused by a coding error in the site\u2019s <code>.htaccess<\/code> file. Let\u2019s take a look at how to resolve this WordPress PHP error.<\/p>\n\n\n\n<p class=\"alert alert-info\"><strong>Note<\/strong>: While some people simply type <code>htaccess<\/code> when discussing the file, the file is more properly called the <code>.htaccess<\/code> file. \u2018Dot\u2019 files are, by default, hidden from view, but visible after you adjust certain settings. The \u2018dot\u2019 is necessary for the file to work properly \u2014 the server won\u2019t recognize the file without it!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"deactivate\">How to Deactivate an .Htaccess File<\/h2>\n\n\n\n<p>Keep in mind that, removing or deactivating the WordPress <code>.htaccess<\/code> file will briefly cause your site to go down. Setting your <code>.htaccess<\/code> back to the default can affect some plugins. If able, you may want to <a href=\"https:\/\/www.inmotionhosting.com\/support\/website\/using-the-ip-deny-manager\/\">restrict access to your site<\/a> while you troubleshoot. With that out of the way, let\u2019s head to cPanel\u2019s File Manager and deactivate that troublesome <code>.htaccess<\/code> file. <\/p>\n\n\n\n<ol class=\"article_list wp-block-list\"><li><a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/how-to-log-into-cpanel\/\">Login to cPanel<\/a>.<\/li><li>Go to <strong>File Manager<\/strong> in cPanel.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"210\" class=\"wp-image-87814\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/01fileManagerIcon.png\" alt=\"cPanel File Manager Icon\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/01fileManagerIcon.png 1342w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/01fileManagerIcon-300x84.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/01fileManagerIcon-1024x286.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/01fileManagerIcon-768x215.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li><li>Go to the directory containing the WordPress site you are troubleshooting. <\/li><li>Find the <code>.htaccess<\/code> file. If you can\u2019t see the <code>.htaccess<\/code> file, be sure that <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/show-hidden-files-in-file-manager\/\">you are able to view hidden files<\/a>. <br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"211\" class=\"wp-image-87815\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/02aWordPressDirectoryWithHtaccessHighlighted.png\" alt=\"Sample WordPress Directory with .htaccess file highlighted\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/02aWordPressDirectoryWithHtaccessHighlighted.png 1794w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/02aWordPressDirectoryWithHtaccessHighlighted-300x84.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/02aWordPressDirectoryWithHtaccessHighlighted-1024x288.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/02aWordPressDirectoryWithHtaccessHighlighted-768x216.png 768w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/02aWordPressDirectoryWithHtaccessHighlighted-1536x432.png 1536w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li><li>We aren\u2019t going to delete the file\u2014 instead we will rename it. That way you will still have it for reference if you need to reconfigure a plugin or theme! Right-click on the file and select <strong>Rename<\/strong>.<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"384\" class=\"wp-image-87816\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/03rightClickRename.png\" alt=\"Right Click Menu in File Manager to Rename\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/03rightClickRename.png 1294w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/03rightClickRename-300x154.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/03rightClickRename-1024x525.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/03rightClickRename-768x393.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li><li>You can deactivate the file by simply adding an extension that cPanel won\u2019t recognize to the end. <code>.bak<\/code> is a popular choice in cPanel and Apache since it reminds the user that the file is a backup. I\u2019d also suggest adding the current date to the end of your renamed file. This makes things much easier if you ever have to go through the files later. You\u2019ll have a hard time remembering the difference between <code>.htaccess1.bak<\/code> and <code>.htaccess2.bak<\/code>, but will easily be able to tell <code>.htaccess03042019.bak<\/code> and <code>.htaccess09082019.bak<\/code> apart!<br><img loading=\"lazy\" decoding=\"async\" width=\"750\" height=\"285\" class=\"wp-image-87817\" style=\"width: 750px;\" src=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/04renamedHtaccessFile.png\" alt=\"renamed .htaccess file\" srcset=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/04renamedHtaccessFile.png 1472w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/04renamedHtaccessFile-300x114.png 300w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/04renamedHtaccessFile-1024x390.png 1024w, https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2020\/05\/04renamedHtaccessFile-768x292.png 768w\" sizes=\"auto, (min-width: 1360px) 876px, (min-width: 960px) calc(61.58vw + 51px), calc(100vw - 80px)\" \/><\/li><\/ol>\n\n\n\n<p>With the <code>.htaccess<\/code> file deactivated, you can <a href=\"#manual\">reset the file manually<\/a> or <a href=\"#fix\">troubleshoot the problem file<\/a>. <\/p>\n\n\n\n<p class=\"alert alert-warning\">For tips on using the File Manager for a variety of tasks, take a look at our <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/using-file-manager-in-cpanel\/\">guide to using File Manager in cPanel<\/a>!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"default\">The Default .Htaccess Code<\/h2>\n\n\n\n<p>This is the default content in a WordPress <code>.htaccess<\/code> file. We\u2019ll be referring to it in the tips below, so be sure to copy it whenever you need to overwrite or fill-in a new file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted wp-block-code\"># BEGIN WordPress\n\nRewriteEngine On\nRewriteBase \/\nRewriteRule ^index\\.php$ - [L]\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule . \/index.php [L]\n\n# END WordPress<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"manual\">How to Reset .Htaccess File Manually<\/h2>\n\n\n\n<p>Since you\u2019ve already deactivated the old WordPress <code>.htaccess<\/code> file, you can use File Manager to create a new file named <code>.htaccess<\/code>. Simply edit this newly created file, paste in the default code from above, and you\u2019ve now regenerated your <code>.htaccess<\/code> file. When you do this, you should be able to access your WordPress site, but any custom plugins that edit the <code>.htaccess<\/code> file to work will not be working. Don\u2019t worry, we\u2019ll cover how to fix this below. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"fix\">How to Fix .Htaccess File<\/h2>\n\n\n\n<p>If you were trying to update WordPress or a plugin, you should be able to do so now. Once everything is up to date, you\u2019ll probably want to deactivate and reactivate your plugins one by one. Many plugins add code to the <code>.htaccess<\/code> file as part of their installation\u2014 reactivating the plugins should put any necessary code back in the <code>.htaccess<\/code> file. Do this one at a time so that you\u2019ll be able to tell if one plugin in particular causes an error.<\/p>\n\n\n\n<p>For simpler sites, plugin reactivation should be more than enough. If you\u2019re using plugins that put a great deal of custom code in the <code>.htaccess<\/code> file, you may need to open the old version of the <code>.htaccess<\/code> in cPanel\u2019s file manager and copy the relevant code over to your new <code>.htaccess<\/code>.<\/p>\n\n\n\n<p>If you went through all of those steps, only for the problem to repeat itself, you need to narrow down what plugin or plugins causes the issue. As you reactivate plugins, only reactivate one at a time. Wait a bit between each one and see if a certain plugin causes your site to experience the same problem you were originally troubleshooting.<\/p>\n\n\n\n<p>Is this a bit of a pain? Yes, definitely! But, it\u2019s the simplest and most direct way to figure out what the problem plugin is. Once you narrow it down, you can decide if you want to replace the plugin, update the plugin, simply deactivate it, or reach out to the plugin developer for further troubleshooting.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"restore\">How to Restore .Htaccess File<\/h2>\n\n\n\n<p>If you ever need to restore an old version of the WordPress <code>.htaccess<\/code> file that you saved, simply deactivate the current <code>.htaccess<\/code> file, and rename the old, archived file back to <code>.htaccess<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"other\">What if The .Htaccess File Is Not the Problem<\/h2>\n\n\n\n<p>If setting your WordPress site\u2019s <code>.htaccess<\/code> to a default file did not resolve the issue, you will need to check some other files. Try <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/cpanel\/what-is-your-default-php-ini-file\/\">troubleshooting your site\u2019s php.ini file<\/a> and the <a href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/wordpress-troubleshooting\/\">wp-config.php file<\/a>. These files can also contain code that overrides your PHP settings. As always, make backup copies of each before you delete anything!<\/p>\n\n\n<div class=\"jumbotron\">\r\n<p>Build a WordPress site fast with a hosting plan that includes a visual drag-and-drop <a href=\"https:\/\/www.inmotionhosting.com\/wordpress-website-builder\">website builder<\/a>, free domain, and hundreds of design templates.<\/p>\r\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Free Templates    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Fast &amp; Easy Transfers    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Free SSL    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Endless Customization    <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/design.inmotionhosting.com\/assets\/icons\/standard\/check-blue.svg\" alt=\"check mark\" width=\"24\" height=\"24\" \/>Affordable<\/p>\r\n<p><a class=\"btn btn-primary btn-lg\" href=\"https:\/\/www.inmotionhosting.com\/wordpress-website-builder\">WordPress Website Builder<\/a><\/p>\r\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Knowing how to reset .htaccess files on your server can save you lots of time. An .htaccess file is a configuration file Apache servers use to configure page loading and redirects. WordPress requires a specially configured .htaccess file to run, but many themes and plugins will edit the WordPress .htaccess file and may conflict with<a class=\"moretag\" href=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/\"> Read More ><\/a><\/p>\n","protected":false},"author":57014,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[56],"tags":[],"class_list":["post-55843","post","type-post","status-publish","format-standard","hentry","category-wordpress"],"acf":[],"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 Reset Htaccess File | InMotion Hosting<\/title>\n<meta name=\"description\" content=\"If you&#039;re having unusual PHP trouble in WordPress, is the .htaccess file the cause? Here&#039;s how to reset htaccess file for troubleshooting to solve site errors.\" \/>\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.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Reset Htaccess File | InMotion Hosting\" \/>\n<meta property=\"og:description\" content=\"If you&#039;re having unusual PHP trouble in WordPress, is the .htaccess file the cause? Here&#039;s how to reset htaccess file for troubleshooting to solve site errors.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/\" \/>\n<meta property=\"og:site_name\" content=\"InMotion Hosting Support Center\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/inmotionhosting\/\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-14T16:21:45+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-10-08T15:16:30+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"630\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"InMotion Hosting Contributor\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/twitter.com\/InMotionHosting\" \/>\n<meta name=\"twitter:site\" content=\"@InMotionHosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"InMotion Hosting Contributor\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/\"},\"author\":{\"name\":\"InMotion Hosting Contributor\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\"},\"headline\":\"How to Reset .Htaccess File\",\"datePublished\":\"2020-05-14T16:21:45+00:00\",\"dateModified\":\"2021-10-08T15:16:30+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/\"},\"wordCount\":1018,\"commentCount\":4,\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile-1024x538.png\",\"articleSection\":[\"WordPress Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/\",\"name\":\"How to Reset Htaccess File | InMotion Hosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile-1024x538.png\",\"datePublished\":\"2020-05-14T16:21:45+00:00\",\"dateModified\":\"2021-10-08T15:16:30+00:00\",\"description\":\"If you're having unusual PHP trouble in WordPress, is the .htaccess file the cause? Here's how to reset htaccess file for troubleshooting to solve site errors.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#primaryimage\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile.png\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile.png\",\"width\":1200,\"height\":630},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.inmotionhosting.com\/support\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Reset .Htaccess File\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#website\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"name\":\"InMotion Hosting Support Center\",\"description\":\"Web Hosting Support &amp; Tutorials\",\"publisher\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#organization\",\"name\":\"InMotion Hosting\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"contentUrl\":\"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg\",\"width\":696,\"height\":696,\"caption\":\"InMotion Hosting\"},\"image\":{\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/inmotionhosting\/\",\"https:\/\/x.com\/InMotionHosting\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644\",\"name\":\"InMotion Hosting Contributor\",\"description\":\"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!\",\"sameAs\":[\"https:\/\/www.linkedin.com\/company\/inmotion-hosting\/\",\"https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting\"],\"url\":\"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Reset Htaccess File | InMotion Hosting","description":"If you're having unusual PHP trouble in WordPress, is the .htaccess file the cause? Here's how to reset htaccess file for troubleshooting to solve site errors.","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.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/","og_locale":"en_US","og_type":"article","og_title":"How to Reset Htaccess File | InMotion Hosting","og_description":"If you're having unusual PHP trouble in WordPress, is the .htaccess file the cause? Here's how to reset htaccess file for troubleshooting to solve site errors.","og_url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/","og_site_name":"InMotion Hosting Support Center","article_publisher":"https:\/\/www.facebook.com\/inmotionhosting\/","article_published_time":"2020-05-14T16:21:45+00:00","article_modified_time":"2021-10-08T15:16:30+00:00","og_image":[{"width":1200,"height":630,"url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile.png","type":"image\/png"}],"author":"InMotion Hosting Contributor","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/twitter.com\/InMotionHosting","twitter_site":"@InMotionHosting","twitter_misc":{"Written by":"InMotion Hosting Contributor","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#article","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/"},"author":{"name":"InMotion Hosting Contributor","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644"},"headline":"How to Reset .Htaccess File","datePublished":"2020-05-14T16:21:45+00:00","dateModified":"2021-10-08T15:16:30+00:00","mainEntityOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/"},"wordCount":1018,"commentCount":4,"publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile-1024x538.png","articleSection":["WordPress Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/","url":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/","name":"How to Reset Htaccess File | InMotion Hosting","isPartOf":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#primaryimage"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#primaryimage"},"thumbnailUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile-1024x538.png","datePublished":"2020-05-14T16:21:45+00:00","dateModified":"2021-10-08T15:16:30+00:00","description":"If you're having unusual PHP trouble in WordPress, is the .htaccess file the cause? Here's how to reset htaccess file for troubleshooting to solve site errors.","breadcrumb":{"@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#primaryimage","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile.png","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2021\/08\/howtoresethtaccessfile.png","width":1200,"height":630},{"@type":"BreadcrumbList","@id":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/reset-the-htaccess-file-to-troubleshoot-wordpress-php-errors\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.inmotionhosting.com\/support\/"},{"@type":"ListItem","position":2,"name":"How to Reset .Htaccess File"}]},{"@type":"WebSite","@id":"https:\/\/www.inmotionhosting.com\/support\/#website","url":"https:\/\/www.inmotionhosting.com\/support\/","name":"InMotion Hosting Support Center","description":"Web Hosting Support &amp; Tutorials","publisher":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.inmotionhosting.com\/support\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.inmotionhosting.com\/support\/#organization","name":"InMotion Hosting","url":"https:\/\/www.inmotionhosting.com\/support\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/","url":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","contentUrl":"https:\/\/www.inmotionhosting.com\/support\/wp-content\/uploads\/2023\/02\/inmotion-hosting-logo-yoast.jpg","width":696,"height":696,"caption":"InMotion Hosting"},"image":{"@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/inmotionhosting\/","https:\/\/x.com\/InMotionHosting"]},{"@type":"Person","@id":"https:\/\/www.inmotionhosting.com\/support\/#\/schema\/person\/f9a4fc454cd1df128ee8e898d30d4644","name":"InMotion Hosting Contributor","description":"InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals!","sameAs":["https:\/\/www.linkedin.com\/company\/inmotion-hosting\/","https:\/\/x.com\/https:\/\/twitter.com\/InMotionHosting"],"url":"https:\/\/www.inmotionhosting.com\/support\/author\/inmotion-hosting-contributor\/"}]}},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"primary_category":{"id":56,"name":"WordPress Tutorials","slug":"wordpress","link":"https:\/\/www.inmotionhosting.com\/support\/edu\/wordpress\/"},"_links":{"self":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/55843","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/users\/57014"}],"replies":[{"embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/comments?post=55843"}],"version-history":[{"count":29,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/55843\/revisions"}],"predecessor-version":[{"id":89688,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/posts\/55843\/revisions\/89688"}],"wp:attachment":[{"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/media?parent=55843"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/categories?post=55843"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.inmotionhosting.com\/support\/wp-json\/wp\/v2\/tags?post=55843"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}