How to Create .htaccess File?
If .htaccess file is not present, here’s how you create one. This method is applicable to both hPanel and cPanel:
1.Click the New File button in the upper menu.
2.Enter .htaccess as the file name, insert the code below and press Create to save your changes.
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress