typecho 伪静态规则for nginx 和 apache
作者:fengyn 日期:2011-04-20
apache
上传.htaccess文件到根目录,内容如下:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
将上面的内容复制到记事本,另存为.htaccess即可。
typecho在nginx下的rewrite有好多方法
location / {
index index.html index.php;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
上传.htaccess文件到根目录,内容如下:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
将上面的内容复制到记事本,另存为.htaccess即可。
typecho在nginx下的rewrite有好多方法
location / {
index index.html index.php;
if (-f $request_filename/index.html){
rewrite (.*) $1/index.html break;
}
if (-f $request_filename/index.php){
rewrite (.*) $1/index.php;
}
if (!-f $request_filename){
rewrite (.*) /index.php;
}
}
评论: 1 | 引用: 0 | 查看次数: -
回复
]%2525252525252525252525E5%2525252525252525252525A5%2525252525252525252525BD%2525252525252525252525E5%252525252525252525252595%25252525252525252525258A%2525252525252525252525E5%252525252525252525252595%25252525252525252525258A%2525252525252525252525E5%252525252525252525252595%25252525252525252525258A%2525252525252525252525E5%252525252525252525252595%25252525252525252525258A%2525252525252525252525E5%252525252525252525252595%25252525252525252525258A%2525252525252525252525E5%252525252525252525252595%25252525252525252525258A%2525252525252525252525E5%252525252525252525252595%25252525252525252525258A%2525252525252525252525E5%252525252525252525252595%25252525252525252525258Awww.slhao.comwww.yxgao.comdfhao.5d6d.comrsqhb.5d6d.comwww.tbgao.com
发表评论

上一篇
下一篇

文章来自:
Tags:
相关日志:
