博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
apache-.htaccess
阅读量:5772 次
发布时间:2019-06-18

本文共 827 字,大约阅读时间需要 2 分钟。

RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule ^(.*)$ %{ENV:BASE}index.php [QSA,L]

If requested URI does not indicate to any existing file then redirect to ${ENV:BASE}index.php.

You can find description of RewriteRule flags here. Briefly speaking:
QSA stands for "query string append". It means that query string will be appended to replacement URI.
L means that is the last rule and no further rules will be processed.

The %{ENV:variable} form of TestString in the RewriteCond allows mod_rewrite's rewrite engine to make decisions conditional on environment variables. Note that the variables accessible in mod_rewrite without the ENV: prefix are not actually environment variables. Rather, they are variables special to mod_rewrite which cannot be accessed from other modules.

转载于:https://www.cnblogs.com/qike/p/5308252.html

你可能感兴趣的文章
html5视频标签
查看>>
JAVA进阶-注解
查看>>
三元表达式之理解/jquery源代码分析之$.inArray实现
查看>>
STM32 mdk软件仿真时过不去时钟的问题
查看>>
(转)让Spring自动扫描和管理Bean
查看>>
Spark Streaming概念学习系列之Spark Streaming容错
查看>>
Windows Server 2003 用户账户的密码和用户配置文件
查看>>
单例模式
查看>>
使用Nginx反向代理 让IIS和Tomcat等多个站点一起飞
查看>>
老旧的金融机构,是时候赶赶云计算的时髦了
查看>>
晶澳向埃及11MW混合发电项目供应光伏组件
查看>>
国产x86 CPU性能达Intel的80%?
查看>>
用友网络陈强兵:企业互联网需解决五大问题
查看>>
SMA推出Powerwall兼容Sunny Boy Storage逆变器
查看>>
[UI] Pull menu interaction concept - 下拉菜单交互
查看>>
maven总结
查看>>
SQL语句
查看>>
对话大神Scott Shenker:从物理博士到SDN's Uncle
查看>>
Nginx 状态监控
查看>>
mysql语句大全(1)
查看>>