现在的位置: 首页 > 综合 > 正文

如果老担心技术问题,以后看看原版的书籍,应该可以搞定的,如果弄通了远离,还担心什么?

2013年04月13日 ⁄ 综合 ⁄ 共 800字 ⁄ 字号 评论关闭

 

这里讲解到了apache的重写原理和规则:

 

 

http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html

 

Apache processes a HTTP request in several phases. A hook for each of these phases is provided by the Apache API. mod_rewrite uses two of these hooks: the URL-to-filename translation hook (used after the HTTP request has been read, but before any authorization starts) and the Fixup hook (triggered after the authorization phases, and after the per-directory config files (.htaccess) have been read, but before the content handler is activated).

Once a request comes in, and Apache has determined the appropriate server (or virtual server), the rewrite engine starts the URL-to-filename translation, processing the mod_rewrite directives from the per-server configuration. A few steps later, when the final data directories are found, the per-directory configuration directives of mod_rewrite are triggered in the Fixup phase.

 

url 与服务器上面文件的关系。

抱歉!评论已关闭.