什么是.htaccess文件? [英] what is .htaccess file?

查看:216
本文介绍了什么是.htaccess文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是一个初学者的Zend框架的工作,并希望了解的 .htaccess文件及其用途 .. 有人可以帮助我..在此先感谢。 我发现一些这样的例子。

.htacess文件

  AuthName指令会员专区名称
的AuthUserFile /path/to/password/file/.htpasswd
与AuthType基本
需要有效的用户
ErrorDocument的401 /error_pages/401.html
的AddHandler服务器解析的.html
 

解决方案

这不是PHP的一部分;这是Apache的一部分。

<一个href="http://httpd.apache.org/docs/2.2/howto/htaccess.html">http://httpd.apache.org/docs/2.2/howto/htaccess.html

  

.htaccess文件提供了一种方法,使在每个目录的基础配置更改。

从本质上讲,它可以让你采取通常会被放在Apache的主配置文件中的指令,并把它们放在一个目录中特定的配置文件来代替。他们大多使用的情况下,你没有进入主配置文件(如共享的主机)。

I am a beginner to zend frame work and want to know about .htaccess file and its uses.. can somebody help me.. thanks in advance. And i found some example like this.

.htacess 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  

解决方案

It's not part of PHP; it's part of Apache.

http://httpd.apache.org/docs/2.2/howto/htaccess.html

.htaccess files provide a way to make configuration changes on a per-directory basis.

Essentially, it allows you to take directives that would normally be put in Apache's main configuration files, and put them in a directory-specific configuration file instead. They're mostly used in cases where you don't have access to the main configuration files (e.g. a shared host).

这篇关于什么是.htaccess文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆