分享

写回答

发帖

[提问] 求教关于VBSEO的.htaccess设置问题

回答|共 21 个

傅立叶级数

发表于 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 | 显示全部楼层

  1. # Comment the following line (add '#' at the beginning)
  2. # to disable mod_rewrite functions.
  3. # Please note: you still need to disable the hack in
  4. # the vBSEO control panel to stop url rewrites.
  5. RewriteEngine On

  6. # Some servers require the Rewritebase directive to be
  7. # enabled (remove '#' at the beginning to activate)
  8. # Please note: when enabled, you must include the path
  9. # to your root vB folder (i.e. RewriteBase /forums/)
  10. RewriteBase /

  11. RewriteCond %{HTTP_HOST} !^forum\.hotsoftdownload\.com
  12. RewriteRule (.*) http://forum.hotsoftdownload.com/$1 [L,R=301]

  13. RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]

  14. RewriteCond %{QUERY_STRING} !vbseourl=
  15. RewriteCond %{REQUEST_URI} !(admincp/|modcp/|chat|cron)
  16. RewriteRule ^(.*\.php(/.*)?)$ vbseo.php?vbseourl=$1 [L,QSA]

  17. RewriteCond %{REQUEST_FILENAME} !\.(jpg|gif)$
  18. RewriteRule ^(archive/.*)$ vbseo.php?vbseourl=$1 [L,QSA]

  19. RewriteCond %{REQUEST_FILENAME} !-f
  20. RewriteCond %{REQUEST_FILENAME} !-d
  21. RewriteCond %{REQUEST_FILENAME} !^(admincp|modcp|clientscript|cpstyles|images)/
  22. RewriteRule ^(.+)$ vbseo.php?vbseourl=$1 [L,QSA]

  23. ####Charset
  24. AddDefaultCharset Off

  25. ####Gzip
  26. <IfModule mod_rewrite.c>
  27. RewriteCond %{REQUEST_FILENAME} -f
  28. RewriteRule ^(.*)(js|css)$ redir.php?file=$1$2&type=$2 [L]
  29. </IfModule>

  30. ####ETags
  31. FileETag None

  32. ####Expires
  33. <IfModule mod_expires.c>
  34. ExpiresActive On
  35. ExpiresByType image/gif A2592000
  36. ExpiresByType image/jpeg A2592000
  37. ExpiresByType image/png A2592000
  38. ExpiresByType application/x-shockwave-flash A2592000
  39. ExpiresByType text/css A2592000
  40. ExpiresByType application/x-javascript A2592000
  41. </IfModule>
复制代码
试试我这个  

演示http://forum.hotsoftdownload.com/

[ 本帖最后由 hellomoto 于 2008-9-9 07:16 PM 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则