Hostwinds Tutorials
Search results for:
Table of Contents
Tags: htaccess
Since you're reading this article, you may need to create or edit a .htaccess file. However, you may also be wondering what a .htaccess file is. A .htaccess file is a configuration file specifically to be used in tandem with the Apache webserver. It can allow you to customize things such as how a file or folder is served up or limiting access to specific files or folders. This article will go over how to create and edit a .htaccess file from cPanel and through the Linux shell (command prompt). Let's get started!
To create a .htaccess file through cPanel, you'll first need to be logged in to cPanel. Once logged in, please refer to the following steps.
You must first be logged into the server via SSH. If you're not certain how to access your server via SSH, please refer to the following article, which covers this: Connecting to Your Server via SSH.
To save the file in Nano press, CTRL+O then Enter and finally CTRL+X.
In Vim, you'd press the Esc key followed by the colon (:) key and then type wq! in the terminal.
Written by Michael Brower / June 22, 2017