导航
用户登录
最新blog文章
搜索
在线用户
目前共有 0 位用户和 0 位游客在线。
lighttpd
lighttpd 重写规则
url.rewrite-once = ( "" => "" )
rewrites a set of URLs internally in the webserver BEFORE they are handled.
在地址处理前重写地址(地址栏显示地址不重写)
url.rewrite-repeat = ( "" => "" )
The difference between these options is that, while url.rewrite-repeat allows for applying multiple (seperately defined) rewrite rules in a row, url.rewrite-once will cause further rewrite rules to be skipped if the expression was matched.
lighttpd drupal 的 url 重写规则
也就是 drupal 所说的 clean url
url.rewrite-final = (
"^/system/test/(.*)$" => "/index.php?q=system/test/$1",
"^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
"^/([^.?]*)$" => "/index.php?q=$1"
)
第一句满足drupal后台管理的测试 简洁链接。
via http://drupal.org/node/43782
Apache drupal 重写规则 RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
drupal lighttpd clean url 的另一个办法: 修改这个 sites/default/settings.php 文件
由 guoshuang 于 周四, 02/21/2008 - 09:32 提交。
Apache drupal 重写规则 RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
drupal lighttpd clean url 的另一个办法: 修改这个 sites/default/settings.php 文件
最新评论
10 周 2 天 前
10 周 2 天 前
10 周 2 天 前
11 周 5 天 前
16 周 22 小时 前
16 周 1 天 前
20 周 5 天 前
20 周 5 天 前
23 周 2 天 前
23 周 3 天 前