• أعضائنا الكرام بخصوص تنفيذ الطلبات قد يستغرق بعض الوقت،شكرا لحسن تفهمكم.
  • أعضاء وزوار معهد زين العربية، نود أن نعلمكم أن المعهد سيشهد في الفترة القادمة الكثير من التغيرات سواءا على المستوى الاداري او مستوى الاقسام، لذا نرجو منكم التعاون، وأي ملاحظات او استفسارات يرجى التواصل معنا عبر قسم الشكاوي و الإقتراحات و الطلبات ونشكركم على حسن تفهمكم وتعاونكم ،مع خالص الشكر والتقدير والاحترام من إدارة زين العربية.

إعادة توجيه الروابط بعد التحويل إلى Xenforo

MesterPerfect

:: مراقب زين العربية ::
طاقم الإدارة
28 يناير 2019
2,293
65
1,571
113
26
sohag, Egypt
mx-blind.org
السَلام عليكم
الموضوع نقاش أكثر منه استفسار
لقد قمت بتحويل منتدى أحد الإصدقاء من الجيل الثالث vb إلى xf الجيل الثاني
الآن بخصوص توجيه الروابط حسب الوثائق هنا
المفروض أن إضافة XF301VB تقوم بإعادة توجيه الروابط تلقائيا إعتمادا على جدول البيانات المخزن في قاعدة البيانات
لقد قمت بتثبيتها فعلا وحددت لها الجدول ولكن لم تقم بعملية إعادة التوجيه
الإضافة ليس لها إعدادات
فهل هناك شيء إضافي كان يجب عمله أو ما رأيكم
تحياتي
 
معذرة لم انتبه كون انه على نفس المسار في هذه الحالة الشرح يقول لن تحتاج الى اي شيء لعمله ..
من الافضل اخي اولا التاكد من ان الاستضافة بها جميع متطلبات السكربت و انه لا يوجد اي شيء يمنع السكربت من العمل بشكل سليم

هل كنت تستخدم vbseo ؟
 
معذرة لم انتبه كون انه على نفس المسار في هذه الحالة الشرح يقول لن تحتاج الى اي شيء لعمله ..
من الافضل اخي اولا التاكد من ان الاستضافة بها جميع متطلبات السكربت و انه لا يوجد اي شيء يمنع السكربت من العمل بشكل سليم

هل كنت تستخدم vbseo ؟
صراحة خبرتي في vb ضعيفة
لكن شكل الروابط كان هكذا
لذا في الغالب نعم كان مستخدم
 
طيب اخي ماذا بشأن ملف الهاتكس
هذا هو كود الهاتكس الحالي أخي
PHP:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default

<IfModule mod_rewrite.c>
    RewriteEngine On

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
 
طيب جرب اضافة هذا الكود بملف الهاتكس وشوف النتيجة

PHP:
RewriteEngine on
RewriteRule f[\d]+/.+-([\d]+)/index([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule f[\d]+/.+-([\d]+)/ showthread.php?t=$1 [NC,L]
RewriteRule f([\d]+)/index([\d]+).html forumdisplay.php?f=$1&page=$2 [NC,L]
RewriteRule f([\d]+)/ forumdisplay.php?f=$1 [NC,L]
 
طيب جرب اضافة هذا الكود بملف الهاتكس وشوف النتيجة

PHP:
RewriteEngine on
RewriteRule f[\d]+/.+-([\d]+)/index([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule f[\d]+/.+-([\d]+)/ showthread.php?t=$1 [NC,L]
RewriteRule f([\d]+)/index([\d]+).html forumdisplay.php?f=$1&page=$2 [NC,L]
RewriteRule f([\d]+)/ forumdisplay.php?f=$1 [NC,L]
كود:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at [email protected] to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
 
تم وضع الملف أخي كان هناك خطأ وتعدل
المهم بعد وضع الكود لم يحدث شيء
وها هو الكود الإجمالي
كود:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>
ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 default
<IfModule mod_rewrite.c>
    RewriteEngine On
    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.

    #RewriteBase /xenforo

    #    This line may be needed to workaround HTTP Basic auth issues when using PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico|crossdomain\.xml|robots\.txt) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
</IfModule>
RewriteEngine on
RewriteRule f[\d]+/.+-([\d]+)/index([\d]+).html showthread.php?t=$1&page=$2 [NC,L]
RewriteRule f[\d]+/.+-([\d]+)/ showthread.php?t=$1 [NC,L]
RewriteRule f([\d]+)/index([\d]+).html forumdisplay.php?f=$1&page=$2 [NC,L]
RewriteRule f([\d]+)/ forumdisplay.php?f=$1 [NC,L]
 

إحصائيات المنتدى

المواضيع
1,667
المشاركات
18,699
الأعضاء
1,275
آخر عضو مسجل
brucezstonez
أعلى