EEDU Blog: 博客 ·  资讯 ·  论坛 ·  留言
登录 新用户? 注册   |  

ahaoxie's blog

订阅博客:

环境生态网站长

阅读全文

Clean URLs with IIS and ISAPI 3

RewriteEngine on
RewriteCond %{HTTP:Host} ^(?:www\.)?example\.com$
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

在settings.php配置:

Windows:
$conf['clean_url'] = 1; // 1 enables, 0 clears clean_url

Apache:
// Isapi_Rewrite 3.x
if (isset($_SERVER['HTTP_X_REWRITE_URL'])) {
$_SERVER['REQUEST_URI'] = $_SERVER['HTTP_X_REWRITE_URL'];
}

发表于: 2011-01-19 15:23 | 全文(查看: 83) | 评论(0) | 本文地址 | 收藏 
分类: 服务器应用(148)   标签: IIS  Isapi_Rewrite  新知  

" Clean URLs with IIS and ISAPI 3" 的评论: (共 0 条)

你对本文的评论:

登录后再作评论
Page was generated in 63 milliseconds