How to solve .htaccess Generation Issues in WordPress
WordPress is an open solurce application that is been designed by a group of programmers within PHP scripting language. it’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’t generate a .htaccess file or if it doesn’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’t work.
1. Change File Permissions: 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’ll be able to modification the permissions to 660 to make it server-writable, which again will have identical limitation.
2. Server Blockage: The SERVER_SOFTWARE variable that your host might need to block and due to WordPress’ .htaccess generation may caused to fail. If you’re server is running Apache and this is known to you from first, then you’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.
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 “Manage”, then from the “Files”, scroll down to the bottom and in wp-includes/vars.php type into the text box under the “Other Files” title. Look for
$is_apache = strstr($_SERVER[‘SERVER_SOFTWARE’], ‘Apache’)? 1: 0;
and replace it with
// $is_apache = strstr($_SERVER[‘SERVER_SOFTWARE’], ‘Apache’)? 1 : 0;
Add a new line under
// $is_apache = strstr($_SERVER[‘SERVER_SOFTWARE’], ‘Apache’)? 1: 0;
and type in
$is_apache = 1;
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.