阅读

.htaccess中的[NC][R][F][L]几个标记是什么意思

apache  2015-08-14 10:52

NC: no case,  就是说不区分大小写;

R:  redirect, 重定向;

F:  forbidden,禁止访问;

L:  last, 表示已经是最后一条规则,.htaccess文件解析即将退出。


部分php框架适用的.htaccess

<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond $1 !^(index.php|images|robots.txt)
  RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>