|
本帖最后由 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 直接跳转到首页了??郁闷??
|
|