Htaccess: Introduction: Difference between revisions

Folder to Directory.
(Moved to new category; Additional grammar and cleanup edits.)
(Folder to Directory.)
 
Line 31: Line 31:


== Several .htaccess files ==
== Several .htaccess files ==
You will find several .htaccess files in The Uniform Server. Do not remove these as they are part of The Uniform Server's security. The file in root folder WWW controls the access to your server from the Internet and Intranet (i.e., online access). You can copy this file into any folder within your website and edit it to meet your needs.
You will find several .htaccess files in The Uniform Server. Do not remove these as they are part of The Uniform Server's security. The file in root directory WWW controls the access to your server from the Internet and Intranet (i.e., online access). You can copy this file into any directory within your website and edit it to meet your needs.


== What it affects ==
== What it affects ==
The .htaccess file affects the folder it is placed in and all sub-folders. The .htaccess file that's located in your root folder (folder WWW) affects your whole website and all folders and files below it.
The .htaccess file affects the directory it is placed in and all sub-directories. The .htaccess file that's located in your root directory (WWW) affects your whole website and all directories and files below it.


You can tailor this action so it applies to a specific sub-folder by copying the .htaccess file to that folder and removing the .htaccess commands that you do not want to be applied to this folder and its sub-folders.
You can tailor this action so it applies to a specific sub-directory by copying the .htaccess file to that directory and removing the .htaccess commands that you do not want to be applied to this directory and its sub-directories.


From the viewpoint of a folder or file, it is the hierarchically nearest .htaccess file that affects it.
From the viewpoint of a directory or file, it is the hierarchically nearest .htaccess file that affects it.


== What can you do with it? ==
== What can you do with it? ==