{"id":1623,"date":"2021-12-30T09:45:17","date_gmt":"2021-12-30T09:45:17","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=1623"},"modified":"2021-12-30T12:59:53","modified_gmt":"2021-12-30T12:59:53","slug":"how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/","title":{"rendered":"How to Create a New .htaccess file to Fix WordPress 500 Internal Server Errors"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-472\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/New-Project-21-300x142.png\" alt=\"htaccess\" width=\"1024\" height=\"486\" srcset=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/New-Project-21-300x142.png 300w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/New-Project-21-768x365.png 768w, https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/New-Project-21.png 1024w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/p>\n<p>A 500 internal server error is a slip-up that stops your web site from functioning properly. This can be caused by a problem that prevents your server from carrying out a request. Though there are variety of potential causes of 500 internal server errors, one among the foremost common could be a corrupted .htaccess file. This tutorial can explain how to create a new one.<\/p>\n<p>It is necessary to notice, however, that the 500 error code doesn&#8217;t establish the exact reason behind the error and there is also a unique cause, like a plugin conflict or the PHP memory limit might have to extend.<\/p>\n<p><strong>How does a 500 internal server error affect my website?<\/strong><\/p>\n<p>If you have a 500 internal server error, your website will not display on a browser. Instead, users will be shown a white screen with the 500 error message. In effect, your website will be offline until the issue is fixed. In the worst-case scenario, this may also prevent you from accessing the WordPress admin login page, requiring you to attempt a fix by accessing the website files via cPanel or FTP.<\/p>\n<p><strong>What is a .htaccess file<\/strong><\/p>\n<p>The .htaccess file is a small but essential file for WordPress websites that controls the configuration of the Apache web server on which your site runs. If it is corrupted, your site will not be able to function properly.<\/p>\n<p><strong>How to create a new .htaccess file<\/strong><\/p>\n<p>Thankfully, this is not too difficult an issue to fix and you can do this by simply creating a new .htaccess file. To do this:<\/p>\n<p>1. Log into your\u00a0<strong>cPanel account<\/strong>.<\/p>\n<p>2. Navigate to the\u00a0<strong>Files<\/strong>\u00a0section and click on\u00a0<strong>File Manager<\/strong>.<\/p>\n<p>3. If you only have a single domain, the .htaccess file will be present in the\u00a0<strong>Home folder<\/strong>. If you have multiple domains, choose the affected domain and you will find its .htaccess file in the top-level folder for that domain.<\/p>\n<p>4. If you cannot see the .htaccess file, it will be hidden. To make it visible, click on the\u00a0<strong>Settings<\/strong>\u00a0button at the top right of the cPanel screen and when the dialog box opens, check\u00a0<strong>the Show Hidden Files (dotfiles)<\/strong>\u00a0option. The .htaccess file should now be visible in the list of files.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-473\" src=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/htaccess-1.png\" alt=\"htaccess-1\" width=\"138\" height=\"200\" \/><\/p>\n<p>5. Now the .htaccess file has been located, the next step is to rename it.\u00a0<strong>Do not delete it,\u00a0<\/strong>instead,\u00a0<strong>right-click<\/strong>\u00a0on the file and\u00a0<strong>rename it<\/strong>\u00a0to something like .htaccess-old.<\/p>\n<p>6. Now try to<strong>\u00a0view your website<\/strong>\u00a0in your browser. If your website appears as normal and there is no 500 internal server error notification, the issue has been fixed.<\/p>\n<p>7. To complete the task of creating a new .htaccess file, you now need to log in to your website\u2019s\u00a0<strong>WordPress admin panel<\/strong>.<\/p>\n<p>8. When logged in, navigate to\u00a0<strong>Settings &gt; Permalinks<\/strong>.<\/p>\n<p>9. On the\u00a0<strong>Permalinks<\/strong>\u00a0page, scroll to the bottom and click the\u00a0<strong>Save Settings<\/strong>\u00a0button. Doing this, without making any changes to the permalink settings, will create a new .htaccess file that works correctly.<\/p>\n<p><strong>Note:<\/strong>\u00a0A corrupted .htaccess file might not have been the cause of your internal server error. If your website continues to display the 500 internal server error notification, the next steps are to increase the PHP memory limit and, if that doesn\u2019t work, deactivate all your plugins and reactivate them one at a time to see if any are causing the issue.<\/p>\n<p><strong>For more information with your hosting, visit our <\/strong><a href=\"https:\/\/ownwebservers.com\/kb\/\"><strong>Knowledgebase<\/strong><\/a><strong>.<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A 500 internal server error is a slip-up that stops your web site from functioning properly. This can be caused by a problem that prevents your server from carrying out a request. Though there are variety of potential causes of 500 internal server errors, one among the foremost common could be a corrupted .htaccess file. [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-1623","post","type-post","status-publish","format-standard","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v15.2.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Create a New .htaccess file to Fix WordPress 500 Internal Server Errors - OWS KB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Create a New .htaccess file to Fix WordPress 500 Internal Server Errors - OWS KB\" \/>\n<meta property=\"og:description\" content=\"A 500 internal server error is a slip-up that stops your web site from functioning properly. This can be caused by a problem that prevents your server from carrying out a request. Though there are variety of potential causes of 500 internal server errors, one among the foremost common could be a corrupted .htaccess file. [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-12-30T09:45:17+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-30T12:59:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/New-Project-21-300x142.png\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\">\n\t<meta name=\"twitter:data1\" content=\"admin\">\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" content=\"2 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"OWS KB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/ownwebservers.com\/kb\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/ownwebservers.com\/kb\/wp-content\/uploads\/2021\/07\/New-Project-21.png\",\"width\":1024,\"height\":486,\"caption\":\"htaccess\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/\",\"name\":\"How to Create a New .htaccess file to Fix WordPress 500 Internal Server Errors - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/#primaryimage\"},\"datePublished\":\"2021-12-30T09:45:17+00:00\",\"dateModified\":\"2021-12-30T12:59:53+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"position\":2,\"item\":{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-create-a-new-htaccess-file-to-fix-wordpress-500-internal-server-errors-2\/\",\"name\":\"How to Create a New .htaccess file to Fix WordPress 500 Internal Server Errors\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/ba5db5841d48bd7517bb2583e13983e6d2fa56a4099a0b3c61ad2daefc321303?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ownwebservers.com\/kb\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","_links":{"self":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1623","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/comments?post=1623"}],"version-history":[{"count":2,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1623\/revisions"}],"predecessor-version":[{"id":3735,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/1623\/revisions\/3735"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=1623"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=1623"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=1623"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}