暴涨700%:"中华第一妖股"蒙古能源曾狂跌99.95% |爱奇艺盘前跌超4% 第一季度净亏损29亿元 |澳总理称将联合举办“最好的一届”女足世界杯 |田径钻石联赛巴黎尤金站取消 中国两站赛事暂不变 |程维再开战:滴滴进军货运,号令招募司机 |[新浪彩票]黄大仙排列三第20128期:预出温码和值 |威联通发布入门家用双盘NAS:四核处理器、噪音极低 |伊朗军舰演习中遭自家导弹误击 已致19死15伤 |各种大型游戏任性玩 高性能游戏旗舰手机推荐 |湖南慈利县发生一起故意伤害案 致1人死亡3人受伤 |
<-
Apache > HTTP Server > Documentation > Version 2.4

Apache mod_rewrite

Available Languages:  en  |  fr  |  tr  |  zh-cn 

mod_rewrite provides a way to modify incoming URL requests, dynamically, based on regular expression rules. This allows you to map arbitrary URLs onto your internal URL structure in any way you like.

It supports an unlimited number of rules and an unlimited number of attached rule conditions for each rule to provide a really flexible and powerful URL manipulation mechanism. The URL manipulations can depend on various tests: server variables, environment variables, HTTP headers, time stamps, external database lookups, and various other external programs or handlers, can be used to achieve granular URL matching.

Rewrite rules can operate on the full URLs, including the path-info and query string portions, and may be used in per-server context (apache2.conf), per-virtualhost context (<VirtualHost> blocks), or per-directory context (.htaccess files and <Directory> blocks). The rewritten result can lead to further rules, internal sub-processing, external request redirection, or proxy passthrough, depending on what flags you attach to the rules.

Since mod_rewrite is so powerful, it can indeed be rather complex. This document supplements the reference documentation, and attempts to allay some of that complexity, and provide highly annotated examples of common scenarios that you may handle with mod_rewrite. But we also attempt to show you when you should not use mod_rewrite, and use other standard Apache features instead, thus avoiding this unnecessary complexity.

See also

Available Languages:  en  |  fr  |  tr  |  zh-cn 

送分电玩

mqczu7i.t9833.cn| mqczu7i.chzbn.cn| mqczu7i.kuzl.cn| mqczu7i.w9145.cn| mqczu7i.yuyi99.cn| nqczu7i.tengchong-xsy.cn|