proxy代理   soft软件   IT 业界特快   norton 诺顿病毒库   代理列表   search FTP搜索   whois IP地理位置   blog 追求完美  
money理财   life生活   RSS聚合门户   firefox WEB浏览器   免费域名   typeset 假古文   AntiVirus 反病毒   ipcn 站点导航  

« 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 配置
这样就可以实现非常多的功能了
跳转 假象等等
本blog WWW

Posted by windtear at July 27, 2005 11:48 PM

本站使用中的任何问题,请与 windtear @ windtear.net 联系
Copyright© 1999-2024 Windtear. All rights reserved.