.htaccess
文件类型:Apache HTACCESS File
扩展名为.htaccess的文件是一个Web文件。文件说明:
Configuration file used by an Apache Web server that provides instructions for different directories of a website; htaccess is short for HTTP access, which is the protocol used for transmitting Web pages.The .htaccess file can used to perform several important functions such as:
Define the index page of a directory (i.e. index.html or index.php)Specify the 404 (Page not found) error pagePerform 301 or 302 page redirectsDeny access from specific IP address or other websitesRestrict access to certain directories and pagesExecute MOD_REWRITE instructions
The .htaccess file is always named .htaccess and does not include a filename before the dot; it is placed in the root directory of a website and is processed by the Web server each time a Web page is accessed.
The Apache .htaccess Tutorial includes additional information about how and when to use .htaccess files..htaccess
打开.htaccess文件
Mac OS
Windows
Apache Web serverEdit with any basic text editor
Linux
Apache Web serverEdit with any basic text editor
其它内容
来源:. htaccess文件