Apache URL重写 apache mod_rewrite RewriteRule RewriteCond使用

Apache服务器带有的mod_rewrite.c模块,可以实现任意映射的URL重写规则。

mod_rewrite提供了基于正则表达式规则动态修改传入的请求的 URL 的方法。 这允许你以自己喜欢的任意方法映射任意 URL 到你的内部 URL 结构。

原始技术文章出处:

中文简述:http://httpd.apache.org/docs/current/rewrite/

基本介绍:http://httpd.apache.org/docs/current/rewrite/intro.html

技术细节:http://httpd.apache.org/docs/current/rewrite/tech.html

参数说明:http://httpd.apache.org/docs/current/mod/mod_rewrite.html

参考:

http://blog.csdn.net/function__/article/details/54379804

http://blog.csdn.net/expleeve/article/details/6621885/

http://www.cnblogs.com/scgw/archive/2011/05/01/2033730.html

http://blog.csdn.net/lijunwyf/article/details/54948463

具体使用:

1、启用URL重写

2、简单配置方法实例

3、函数参考




猜你喜欢

转载自blog.csdn.net/rainth/article/details/79010714