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

[HELP] 二级域名删除index总是跳转到首页,请高手帮忙看一下?

[复制链接]
发表于 2012-4-26 23:45:48 | 显示全部楼层 |阅读模式
本帖最后由 lianke123 于 2012-4-26 23:50 编辑

我的一个网站www.phpsharer.com 在根目录下 用的是wordpress程序
我现在想建立一个blog.phpsharer.com 用的是 add domin的方式添加的blog.phpsharer.com 这个目录在/public_html/blog

我在其下面建立 .htaccess 文件 内容如下 ,建立之后点击去掉index.php的页面总是跳转到首页,不知道什么原因

我修改的地方:
$config['base_url']    = "http://blog.phpsharer.com/";
$config['index_page'] = "";
.htaccess 文件 内容如下:
<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^logs/([^/]+)/([^/]+)/([^/]+)/([^/]+)$ /posts [R=301,L]
    RewriteCond %{HTTP_HOST} ^cnsaturn\.com [nc]
    RewriteRule (.*) http://www.cnsaturn.com/$1 [R=301,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>

<IfModule !mod_rewrite.c>
    # If we don't have mod_rewrite installed, all 404's
    # can be sent to index.php, and everything works as normal.
    ErrorDocument 404 /index.php
</IfModule>
这个用的是stblog程序 请高手能给看一下问题所在? 输入 http://blog.phpsharer.com/posts/2  直接跳转到首页了??郁闷??

 楼主| 发表于 2012-4-27 11:07:15 | 显示全部楼层
{:soso_e115:}没人回答吗 ? 看来只能用带index.php的连接了

本版积分规则