用户
 找回密码
 入住 CI 中国社区
搜索
查看: 2610|回复: 0
收起左侧

[已解决] 绑定域名以后应该怎么去index.php

[复制链接]
发表于 2011-5-17 12:00:31 | 显示全部楼层 |阅读模式
本帖最后由 onice 于 2011-5-17 12:31 编辑

网站程序本来不是在根目录下

所以我的htaccess规则为:
  1. RewriteEngine on
  2. RewriteCond $1 !^(index\.php|images|robots|contact_us|order)
  3. RewriteCond $1 !^(template)

  4. RewriteRule ^(.*)$ index.php/$1 [L]
复制代码


然后我在本地绑定域名以后
  1. <VirtualHost *:80>
  2. DocumentRoot   D:/AppServ/www/onice
  3. ServerName   www.make.com
  4. <Directory "D:/AppServ/www/onice">
  5. AllowOverride All
  6. </Directory>
  7. </VirtualHost>
复制代码

就给了我网站程序一个域名:www.make.com

config.php为
PHP复制代码
 
$config['base_url']        = "http://www.make.com/";
$config['index_page'] = "";
复制代码



为了去掉index.php

我应该怎么做?


本版积分规则