The .htaccess file can be placed in one or more of your /home/user/public_html subdirectories. Among other things, this file can be used to restrict access to other files and web pages. When a request for a web page is made, the web server first checks for an .htaccess file. The server begins this check by looking for .htaccess in the root of the current web directory, and on down the directory tree until it reaches the directory where the requested file resides.
Since the placement of the .htaccess file determines when it is executed, this fact can be used to restrict access only in certain subdirectories.
Search Knowledge Base Articles
What is htaccess?
Did you find this article useful?
Related Articles
-
I've never used Linux - can I still host with you?
Absolutely! All our hosting plans do not require you to have knowledge of that operating system. For the most part, the webserver is transparen... -
Why am I getting the "Server: Error 500" message?
500 errors are typically something wrong in the syntax of your script. Most often you should check to make sure you have the path to PERL correct. Cu... -
What is File Manager?
The File Manager Option within your Control Panel can prove to be a very powerful feature. It will handle many of the functions that an FTP or Telnet ... -
How can I upload my site?
Use the File Manager located in your cPanel Control Panel to view all the directories and files in your account, as well as change permissions for di... -
How can I create my own backup of my web site?
This option in your control panel allows you to compress your directories and/or files located in your account. This is an excellent way to backup you...