PDA

View Full Version : How to add .htaccess file?



Nirala
03-08-2017, 02:39 AM
How to add .htaccess file to the root directory if this file is not exists in root directory?

fayeseom
03-08-2017, 03:39 AM
1. Login to your cPanel Account
2. Click the File Manager icon, located in the Files section.
3. From the File Manger popup choose "Choose Hidden Files (dotfiles)."
Note: If you do not see this popup you will need to click the "reset all interface settings" link at the bottom of the cPanel page.
4. From the File Manager popup choose the folder you would like to open, most often the "Web Root (public_html/www)"
5. Click the Go button.
Note: If you are in the File Manager already you can add &showhidden=1 to the end of the URL.
6. Click the New File icon to create a new file and name it .htaccess