How to Create Default WordPress .htaccess File

A simple tutorial to simplify your task to create default wordpress .htaccess file in simple steps.

Create Default WordPress .htaccess File

.htaccess File: It is a default file which comes when you download and install WordPress on Apache web server. At times, .htaccess file might not be there while Wordpress installation. On such a circumstance, you can create it manually.
Follow the below given simple steps to create default WordPress .htaccess file,
Step 1:Login to your Cpanel.
Login To Cpanel

Step 2:
Go to → File Manager
Goto File Manager
Step 3: Open the public_html folder and create a new text file in the name .htaccess.
Htaccessfilecreate
Step 4: Right click the .htaccess file and select the edit option.
Edit Htaccess File
Step 5:Copy paste the below given code in the .htaccess file and click on Save Changes.
# BEGIN WordPress
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
Step 6: You have now successfully created the default WordPress .htaccess File.