Creating .htaccess file in hPanel
To create an .htaccess file, all you need to do is go to Hosting → Manage → File Manager:
Open the needed directory. If you want the rules in the file to apply to the whole website, you need to open public_html.
Then click on New File icon:
Input .htaccess
(make sure the dot is added at the beginning) and click on Create:
Creating .htaccess file in cPanel
To create an .htaccess file, all you need to do is open your cPanel account and select the File Manager:
Open the needed directory. If you want the rules in the file to apply to the whole website, you need to open public_html.
Then click on + File icon:
Input “.htaccess” (make sure the dot is added at the beginning) and click on Create:
In case you don’t see .htaccess on your public_html, try enabling hidden files.
Congratulations, your .htaccess file is created, you can now edit it 😊
NOTES: