عرض مشاركة واحدة
قديم 04-08-2018, 08:57 PM
المشاركة 2
هيلبرنت
.:: رفيق درب ::.
  • هيلبرنت غير متواجد حالياً
افتراضي رد: التاكد من اعدادات ملف htaccess
تفضل اخى شرح لك
كود:
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^plus-team.org [nc]
RewriteRule (.*) https://www.plus-team.org/vb/$1 [R=301,L]

اللى بالاعلى خاص بتحويل الروابط الى البرتوكول الامن

# 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\.plus-team\.org
#RewriteRule (.*) https://www.plus-team.org/vb/$1 [L,R=301]


هنا بيحول الرابط للدخول الى مسار منتداك على طول

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

RewriteCond %{REQUEST_URI} !(Dev-Point/|Plus-TeaM/|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]

RewriteEngine On
RewriteRule ^t(.*)$ https://www.plus-team.org/vb/t$1 [L]
RewriteRule ^t(.*)$ https://www.plus-team.org/vb/f$1 [L]

شكل روابط الاقسام والمواضيع زى مكانت فى نقطة تطوير وهيلبرنت زمان
على فكره الهاتكس تمام توكل على الله