Can any one give simple and brief answer for .htaccess file. Describe this in simple and understandable world.
1条回答 默认 最新
- dqsxsmi3704 2015-04-25 08:14关注
.htaccess is a configuration file for use on web servers running the Apache Web Server software. When a .htaccess file is placed in a directory which is in turn 'loaded via the Apache Web Server', then the .htaccess file is detected and executed by the Apache Web Server software. These .htaccess files can be used to alter the configuration of the Apache Web Server software to enable/disable additional functionality and features that the Apache Web Server software has to offer. These facilities include basic redirect functionality, for instance if a 404 file not found error occurs, or for more advanced functions such as content password protection or image hot link prevention.
Here is an example of what you might include in a .htaccess file.
AuthName "Member's Area Name" AuthUserFile /path/to/password/file/.htpasswd AuthType Basic require valid-user ErrorDocument 401 /error_pages/401.html AddHandler server-parsed .html
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报