طلب تعديلات .htaccess بعد تركيب vbseo
السلام عليكم ورحمة الله وبركاته
قمت اليوم بتركيب هاك vBseo 3.3.0 لتحويل روابط المنتدى.
ولكني قمت بإيقافه وتعطيله بعد ان عملي مشكلة وهي عند الدخول على الموقع www.mysite.com لا يدخل ابدا ويعطيني الصفحة خطا في الاكسبلورر.
ولكن عند الدخول لـ www.mysite.com/index.php لا يوجد اي مشكلة ويدخل بشكل نظامي. :mwalat9:
الملاحظة الثانية : كنت مركب هاك الـ vbseo قبل شهرين ولكن بعد ترقية المنتدى ازلته لاني كنت اظن انه يسبب ثقلا للمنتدى . وطلع السبب الصندوق الماسي الذي مسحته عن بكرة أبيه :mwalat1:
عند حذف ملفات الVbseo بعد تعطيله لا يعمل المنتدى
الملاحظة الثالثة هو ان المنتدى لدي مركب على الـ puplic_html وليس على مجلد vb . وهذا ما لم استطع تغييره في ملف .htaccess
والمشكلة كلها بهالملف .htaccess
وملف .htaccess عندي يحوي :
الكلام الملون باللون الأحمر اتوقع انه هو المشكلة لان منتداي على مجلد الـ puplic_html
الكلام باللون الأسود اضفته لعدم فقدان الروابط المأرشفة حيث اني كنت مركب الهاك قبل شهرين
كود:
# 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 /vb/)
#RewriteBase /
#RewriteCond %{HTTP_HOST} !^www\.mysite\.com
#RewriteRule (.*) http://www.mysite.com/vb/$1 [L,R=301]
RewriteRule ^t(.*).html showthread.php?t=$1 [L]
RewriteRule ^f(.*).html forumdisplay.php?f=$1 [L]
RewriteRule ^u(.*).html member.php?u=$1 [L]
RewriteRule ^t(.*)-next-thread.html showthread.php?t=$1&goto=nextnewest [L]
RewriteRule ^f(.*).html?pagenumber=(.*) forumdisplay.php?f=$1&pagenumber=$2 [L]
RewriteRule ^(.*)-(.*)-post.html showpost.php?p=$1&postcount=$2 [L]
RewriteRule ^((urllist|sitemap_).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L]
RewriteCond %{REQUEST_URI} !(admincp/|modcp/|cron|vbseo_sitemap)
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]
# Turn on Expires and set default to 0
ExpiresActive On
ExpiresDefault A0
# Set up caching on media files for 1 year (forever?)
<FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
ExpiresDefault A29030400
Header append Cache-Control "public"
</FilesMatch>
# Set up caching on media files for 1 week
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$">
ExpiresDefault A604800
Header append Cache-Control "public"
</FilesMatch>
# Set up 2 Hour caching on commonly updated files
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A7200
Header append Cache-Control "proxy-revalidate"
</FilesMatch>
# Force no caching for dynamic files
<FilesMatch "\.(php|cgi|pl|htm)$">
ExpiresActive Off
Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>
أرجو المساعدة :mwalat30:
رد: طلب تعديلات .htaccess بعد تركيب vbseo
:mwalat9::mwalat9:
:mwalat9::mwalat9:
:mwalat9::mwalat9:
رد: طلب تعديلات .htaccess بعد تركيب vbseo
أواجه نفس المشكلة تماما
في انتظار الحل
رد: طلب تعديلات .htaccess بعد تركيب vbseo
تم حل المشكلة
امسح كل ما بداخل ملف الـ .htaccess
وضع التالي مع تغيير روابط المنتدى
كود PHP:
# 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 /vb/)
RewriteBase /vb
#RewriteCond %{HTTP_HOST} !^www\.ba9-bnat\.com
#RewriteRule (.*) http://www.ba9-bnat.com/vb/$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)
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]
رد: طلب تعديلات .htaccess بعد تركيب vbseo
للأسف نفس المشكلة
عند الذهاب لأي موضوع يعطي صفحة بيضاء بها :
Not Found
The requested URL /t2098-new-post.html was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.2.14 (Unix) mod_ssl/2.2.14 OpenSSL/0.9.8l DAV/2 mod_auth_passthrough/2.1 FrontPage/5.0.2.2635 Server