[提问]
求教关于VBSEO的.htaccess设置问题
|
|
我用的vBulletin,我用的SSL已经绑定了一个主域名A.COM,同时在服务器根目录下边建立了1个B文件夹,用B.COM转向到跟目下的B文件夹。
装了VBSEO后发现论坛出现500错误,问题出在.htaccess上边,
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
这两条规则我不知道如何修改,我改成a.com/b,后可以通过a.com/b正常访问论坛,但是原来的b.com无法访问,改成b.com后2者都无法访问。。。。
多谢
[ 本帖最后由 傅立叶级数 于 2008-9-8 10:59 AM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2008-9-8 10:46:23
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
傅立叶级数
发表于 2008-9-8 10:58:29
|
显示全部楼层
原帖由 add.c 于 2008-9-8 10:46 AM 发表 
添加b。com域名的时候绑定到b文件夹就可以了。
我早就绑定了,并且以前一直好用,加上那个.htaccess就不行了
你是说要重新绑定? |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2008-9-8 11:10:16
|
显示全部楼层
回复 3# 的帖子
应该是你.htaccess设置的有错误。
特别注意目录不要写错 |
|
|
|
|
|
|
|
|
|
|
傅立叶级数
发表于 2008-9-8 11:45:29
|
显示全部楼层
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
这两行涉及到目录,我不知道怎么设啊 |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2008-9-8 11:51:07
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
傅立叶级数
发表于 2008-9-8 11:52:50
|
显示全部楼层
论坛是VBULLETIN的,加了个SEO插件,要时限伪静态 |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2008-9-8 11:55:34
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
傅立叶级数
发表于 2008-9-8 11:59:04
|
显示全部楼层
# Comment the following line (add '#' at the beginning)
# to disable mod_rewrite functions.
# Please note: you still need to disable the hack in
# the vBSEO control panel to stop url rewrites.
RewriteEngine On
# Some servers require the Rewritebase directive to be
# enabled (remove '#' at the beginning to activate)
# Please note: when enabled, you must include the path
# to your root vB folder (i.e. RewriteBase /forums/)
#RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{QUERY_STRING} !vbseourl=
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]
这个是下载带的,麻烦版主看看那些需要改
根目录下的DZ6.0伪静态成功,估计不是服务器的问题,还是这个我没设置好吧 |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2008-9-8 12:02:47
|
显示全部楼层
“#RewriteBase /” /替换为你的目录,比如/bbs
下面的依你的域名更改
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
#RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301] |
|
|
|
|
|
|
|
|