How to create htaccess file in cPanel

.htaccess file in cPanel

The .htaccess (hypertext access) file is a supported directory level configuration file, used for configuring access to a website such as URL redirection, URL shortening, access control to a specific directory, and other very convenient actions for the protection of our website. The 'period' (period or end point) before the file name makes it a hidden file in Unix-based environments.

Creating a .htaccess file can be relatively easy for some and for others a difficulty, in this example we are going to see how to create a .htaccess file in the main directory of our cPanel we will also see how to view the hidden files in our cPanel root directory .

To view the hidden files in our cPanel root directory we don't go (File manager >> Settings >> Show hidden files)


setting cPanel

Show hidden files

Mostrar archivos ocultos cPanel

To create a file we perform the following steps, click again on (File manager), position ourselves in the rais directory of our website (public_html) then go to the upper left and click on (+ file), enter as the name of our file (.htaccess) and save.

Crear un archivos cPanel

If you have any questions, please feel free to contact Picaraza Domains Ltd support team 24/7/365.
Was this answer helpful?

Related Articles

Ruby on Rails

Ruby on Rails is a free web application framework for the Ruby programming language. It is often...

Connect remotely to MySQL database

Remote MySQL connection is disabled on our shared servers due to security reasons, but you can...

Check the number of inodes in cPanel

An inode is the abbreviation for index node. In Unix-based file systems, an inode is considered a...

how many CPU resources I'm using?

All of our shared hosting servers are equipped with the Cloudlinux operating system at this time,...

How to upload the content for addon domain

You have to upload the files for an addon domain to its directory. When you create a new addon...