WordPress is a much versatile platform and it also comes with very advanced features, you can control almost each and every activity and Performance of your website. Today we are going  to talk about on htaccess file for wordpress which plays a very important key roll of every Site . You can do many things using .htaccess file such as changing the behavior of handling search engine bots, add write/re-write rules for URL redirections,image caching,you can activate DEFLATE and Gzip compression,html/java/css caching,page speed,and adding security rules to keep your blog safe from spammers and brutal attacks.

What is WordPress .htaccess file ?

The .htaccess is a distributed configuration file, and is how Apache handles configuration changes on a per-directory basis. WordPress uses this file to manipulate how Apache serves files from its root directory, and subdirectories thereof. Most notably, WP modifies this file to be able to handle pretty permalinks .htaccess file name has a dot (.) at the beginning, which specifies that it is a hidden file. You have to Turn On ‘show hidden file feature’ when you are trying to access your .htaccess file using FTP client or cPanel of your hosting.

How to create htaccess file for wordpress ?

In most of the cases, WordPress creates .htaccess file automatically, when the first time you choose your permalink structure or your website URL structure. In few other cases WordPress might not generate .htaccess file automatically because of some file read/write/create permissions at your hosting server end.

htaccess file for wordpress Here I am sharing few steps on how to create .htaccess file manually in WordPress.

Step-1 : Open your notepad/other text editor that you use to create a text file on your computer.
Step-2: Copy and Paste the Below given code in that file.

Step-3: Click Save and rename it as “.htaccess.”
Step-4: Your .htaccess file is now Created.
Step-5: Upload your .htaccess file in your websites root directory by using any FTP client like FileZilla or by directly using your hosing CPanel’s File Manager.

Hope you find this information useful. and share what method you use to create .htaccess file, in comment section. Do share this post with your friends and acquaintances. Feel free to ask if you struck somewhere while applying above methods for your website or blog.