{"id":2096,"date":"2021-09-21T13:02:34","date_gmt":"2021-09-21T13:02:34","guid":{"rendered":"https:\/\/ownwebservers.com\/kb\/?p=2096"},"modified":"2021-09-21T13:02:34","modified_gmt":"2021-09-21T13:02:34","slug":"how-to-solve-htaccess-generation-issues-in-wordpress","status":"publish","type":"post","link":"https:\/\/ownwebservers.com\/kb\/how-to-solve-htaccess-generation-issues-in-wordpress\/","title":{"rendered":"How to solve .htaccess Generation Issues in WordPress"},"content":{"rendered":"<p>WordPress is an open solurce application that is been designed by a group of programmers within PHP scripting language. it&#8217;s also known as a CMS that is simple to understand and use. WordPress has range of plugins which might be installed on any wordpress blog to make any task simple. However sometime if your installation of WordPress doesn&#8217;t generate a .htaccess file or if it doesn&#8217;t write the new rules onto your existing .htaccess file then there ar some reasons that might be causing this. Work step by step and still to the next step on condition that the previous step doesn&#8217;t work.<\/p>\n<p><strong>1. Change File Permissions<\/strong>: You want to chmod the .htaccess file to 666 to edit it with the WordPress template editor, however this is often not suggested, since if you are doing that, any user of your blog, who will edit templates will be ready to edit it. you&#8217;ll be able to modification the permissions to 660 to make it server-writable, which again will have identical limitation.<\/p>\n<p><strong>2. Server Blockage:<\/strong> The SERVER_SOFTWARE variable that your host might need to block and due to WordPress\u2019 .htaccess generation may caused to fail. If you&#8217;re server is running Apache and this is known to you from first, then you&#8217;ll be able to make your WordPress to believe that your server is running Apache this you can do by changing your wp-includes\/vars.php file. Follow the steps as mention below to implement these changes.<\/p>\n<p>Using the built in file editor Open the wp-includes\/vars.php file in your WordPress Admin panel. Login to WordPress to navigate to this panel, select \u201cManage\u201d, then from the \u201cFiles\u201d, scroll down to the bottom and in wp-includes\/vars.php type into the text box under the \u201cOther Files\u201d title. Look for<\/p>\n<p>$is_apache = strstr($_SERVER[\u2018SERVER_SOFTWARE\u2019], \u2018Apache\u2019)? 1: 0;<br \/>\nand replace it with<\/p>\n<p>\/\/ $is_apache = strstr($_SERVER[\u2018SERVER_SOFTWARE\u2019], \u2018Apache\u2019)? 1 : 0;<br \/>\nAdd a new line under<\/p>\n<p>\/\/ $is_apache = strstr($_SERVER[\u2018SERVER_SOFTWARE\u2019], \u2018Apache\u2019)? 1: 0;<br \/>\nand type in<br \/>\n$is_apache = 1;<\/p>\n<p>cPanel hosting package is actually smart to host a WordPress blog and web hosting providers are deploying quality hosting services from last decade with smart customer testimonials and security in hosting.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>WordPress is an open solurce application that is been designed by a group of programmers within PHP scripting language. it&#8217;s also known as a CMS that is simple to understand and use. WordPress has range of plugins which might be installed on any wordpress blog to make any task simple. However sometime if your installation [&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-2096","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 solve .htaccess Generation Issues in WordPress - 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-solve-htaccess-generation-issues-in-wordpress\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to solve .htaccess Generation Issues in WordPress - OWS KB\" \/>\n<meta property=\"og:description\" content=\"WordPress is an open solurce application that is been designed by a group of programmers within PHP scripting language. it&#8217;s also known as a CMS that is simple to understand and use. WordPress has range of plugins which might be installed on any wordpress blog to make any task simple. However sometime if your installation [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ownwebservers.com\/kb\/how-to-solve-htaccess-generation-issues-in-wordpress\/\" \/>\n<meta property=\"og:site_name\" content=\"OWS KB\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-21T13:02:34+00:00\" \/>\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=\"1 minute\">\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\":\"WebPage\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-solve-htaccess-generation-issues-in-wordpress\/#webpage\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-solve-htaccess-generation-issues-in-wordpress\/\",\"name\":\"How to solve .htaccess Generation Issues in WordPress - OWS KB\",\"isPartOf\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#website\"},\"datePublished\":\"2021-09-21T13:02:34+00:00\",\"dateModified\":\"2021-09-21T13:02:34+00:00\",\"author\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/#\/schema\/person\/4a40fe3fe17a08ddd1d7c113668e75f2\"},\"breadcrumb\":{\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-solve-htaccess-generation-issues-in-wordpress\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ownwebservers.com\/kb\/how-to-solve-htaccess-generation-issues-in-wordpress\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ownwebservers.com\/kb\/how-to-solve-htaccess-generation-issues-in-wordpress\/#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-solve-htaccess-generation-issues-in-wordpress\/\",\"url\":\"https:\/\/ownwebservers.com\/kb\/how-to-solve-htaccess-generation-issues-in-wordpress\/\",\"name\":\"How to solve .htaccess Generation Issues in WordPress\"}}]},{\"@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\/2096","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=2096"}],"version-history":[{"count":1,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2096\/revisions"}],"predecessor-version":[{"id":2097,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/posts\/2096\/revisions\/2097"}],"wp:attachment":[{"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/media?parent=2096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/categories?post=2096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ownwebservers.com\/kb\/wp-json\/wp\/v2\/tags?post=2096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}