Kết quả 1 đến 1 của 1
-
09-04-14, 02:10 AM #1
- Ngày tham gia
- Sep 2011
- Đang ở
- Localhost
- Bài viết
- 229
- Thanks
- 101
- Thanked 36 Times in 27 Posts
[Hướng Dẫn ] vbSEO Internal Server Error .httaccess (Solved)
If you get an error then make sure you have a few things done in your .httaccess file in your forums root directory. You will see all the stuff needed that isn't making this work has the # in front of it, read below and see what lines need it removed.
Here is the default code:
PHP Code:
# 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 %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap|api\.php)
RewriteRule ^((archive/)?(.*\.php(/.*)?))$ vbseo.php [L,QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/(admincp|modcp|clientscript|cpstyles|images)/
RewriteRule ^(.+)$ vbseo.php [L,QSA]
PHP Code:
#RewriteBase /
Và sửa thành:
PHP Code:
RewriteBase /
Code:
#RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com #RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
Sửa thành:
PHP Code:
RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com
RewriteRule (.*) http://www.yourdomain.com/forums/$1 [L,R=301]
Make sure you replace the "yourdomain" with your sites URL. Also if you have your forum in the root then change the RewriteRule (.*) http://www.yourdomain.com/$1 notice I just remover the directory "forum" from the end.
Nguồn : Sưu Tầm
Khách viếng thăm hãy cùng ShineGhost xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
Các Chủ đề tương tự
-
[Hướng dẫn] Fix lỗi Internal Server Error
Bởi ShineGhost trong diễn đàn vBulletin TutorialTrả lời: 0Bài viết cuối: 13-03-14, 11:40 PM -
- Hướng dẫn redirect link vBSEO sau khi xóa mod vBSEO
Bởi ShineGhost trong diễn đàn vBulletin TutorialTrả lời: 0Bài viết cuối: 13-03-14, 11:29 PM -
[JX] Server bị lỗi này [S3PDB MSSQLServer Connection::Do COM error: IDispatch error #
Bởi Mr.Quy trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 2Bài viết cuối: 18-02-14, 03:19 PM -
vBSEO Style 1.0 PRO
Bởi iaion trong diễn đàn vBulletin 3.8 StylesTrả lời: 0Bài viết cuối: 12-02-14, 10:50 AM -
Cannot get internal adapter
Bởi linhkids trong diễn đàn Hỏi Đáp/ Yêu CầuTrả lời: 0Bài viết cuối: 20-08-11, 07:13 PM