« proftpd 1.3.0rc2 released | Main | Microsoft Windows Vista Beta 1 发布 »
July 27, 2005
apache 的 mod_rewrite 模块
版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本声明。 https://windtear.net/archives/2005/07/27/000727.html http://windtear.net/archives/2005/07/27/000727.html apache 的 mod_rewrite 模块 http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html apache 可以进行简单的 Redirect # # Redirect allows you to tell clients about documents which used to exist in # your server's namespace, but do not anymore. This allows you to tell the # clients where to look for the relocated document. # Example: # Redirect permanent /foo http://www.example.com/bar # # Directives controlling the display of server-generated directory listings. # 要进行复杂、高级、灵活的人性化处理就需要 mod_rewrite 出马勒 httpd.conf 记得先加载 LoadModule rewrite_module libexec/mod_rewrite.so AddModule mod_rewrite.c RewriteEngine on 然后进行配置 RewriteCond RewriteRule 配置 这样就可以实现非常多的功能了 跳转 假象等等 |
Posted by windtear at July 27, 2005 11:48 PM