[提问]
求教关于VBSEO的.htaccess设置问题
|
|
傅立叶级数
发表于 2008-9-8 12:15:27
|
显示全部楼层
这是我改完之后的
# 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 /sovoice
#RewriteCond %{HTTP_HOST} !^www.helloshen.com/sovoice
#RewriteRule (.*) http://www.helloshen.com/sovoice/$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]
问题是,访问helloshen.com/sovoice可以访问,访问sovoice.com出现错误(www省略未写),请版主帮忙 |
|
|
|
|
|
|
|
|
|
|
傅立叶级数
发表于 2008-9-8 12:31:13
|
显示全部楼层
这是错误提示
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, support@supportwebsite.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Apache/1.3.33 Server at www.sovoice.com Port 80 |
|
|
|
|
|
|
|
|
|
|
傅立叶级数
发表于 2008-9-8 13:35:43
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2008-9-8 14:34:15
|
显示全部楼层
|
|
|
|
|
|
|
|
|
|
傅立叶级数
发表于 2008-9-8 14:39:12
|
显示全部楼层
www.sovoice.com?
不行,还是500错误 |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2008-9-8 14:51:49
|
显示全部楼层
你是想做301跳转么?
http://godaddy.idcspy.com/domain/domain_opt1
如果是做转向,参考:
http://kb.idcspy.com/Htaccess#Redirects_.E8.BD.AC.E5.90.91
[ 本帖最后由 add.c 于 2008-9-8 02:53 PM 编辑 ] |
|
|
|
|
|
|
|
|
|
|
傅立叶级数
发表于 2008-9-8 16:32:53
|
显示全部楼层
再次感谢版主
您说的太专业了,我不太明白
就是伪静态前我已经设置好了,访问新域名可以直接转到www.主域名.com/新域名文件夹
但是设了伪静态,加了.htaccess后就不能用了 |
|
|
|
|
|
|
|
|
|
|
add.c
发表于 2008-9-8 16:41:41
|
显示全部楼层
回复 17# 的帖子
#RewriteCond %{HTTP_HOST} !^www.helloshen.com/sovoice
#RewriteRule (.*) http://www.helloshen.com/sovoice/$1 [L,R=301
改为
#RewriteCond %{HTTP_HOST} !^www.sovoice.com
#RewriteRule (.*) http://www.helloshen.com/sovoice/$1 [L,R=301 |
|
|
|
|
|
|
|
|
|
|
傅立叶级数
发表于 2008-9-8 18:46:41
|
显示全部楼层
回复 18# 的帖子
老大。。。。。。。。还不行,还是500  |
|
|
|
|
|
|
|
|
|
|
hellomoto
发表于 2008-9-9 19:11:28
|
显示全部楼层
- # 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} !^forum\.hotsoftdownload\.com
- RewriteRule (.*) http://forum.hotsoftdownload.com/$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]
- ####Charset
- AddDefaultCharset Off
- ####Gzip
- <IfModule mod_rewrite.c>
- RewriteCond %{REQUEST_FILENAME} -f
- RewriteRule ^(.*)(js|css)$ redir.php?file=$1$2&type=$2 [L]
- </IfModule>
- ####ETags
- FileETag None
- ####Expires
- <IfModule mod_expires.c>
- ExpiresActive On
- ExpiresByType image/gif A2592000
- ExpiresByType image/jpeg A2592000
- ExpiresByType image/png A2592000
- ExpiresByType application/x-shockwave-flash A2592000
- ExpiresByType text/css A2592000
- ExpiresByType application/x-javascript A2592000
- </IfModule>
复制代码 试试我这个
演示http://forum.hotsoftdownload.com/
[ 本帖最后由 hellomoto 于 2008-9-9 07:16 PM 编辑 ] |
|
|
|
|
|
|
|
|