السلام عليكم ورحمة الله وبركاته احبتي
قبل ظهور هاك الفيبسو اعتمدت على الكود التالي لجعل روابط الـ php الى html
وانا الحقيقه لا افهم كثيرا في ملف ال .htaccessكود:RewriteEngine on RewriteBase / RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).html(.*)$ $1.php?$2=$3&$4=$5&$6=$7&$8=$9&$10=$11&$12=$13$14 RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).html(.*)$ $1.php?$2=$3&$4=$5&$6=$7&$8=$9&$10=$11$12 RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).html(.*)$ $1.php?$2=$3&$4=$5&$6=$7&$8=$9$10 RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).html(.*)$ $1.php?$2=$3&$4=$5&$6=$7$8 RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*).html(.*)$ $1.php?$2=$3&$4=$5$6 RewriteRule ^(.*)-(.*)_(.*).html(.*)$ $1.php?$2=$3$4 RewriteRule ^(.*).html$ $1.php RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).shtml(.*)$ $1.php?$2=$3&$4=$5&$6=$7&$8=$9&$10=$11&$12=$13$14 RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).shtml(.*)$ $1.php?$2=$3&$4=$5&$6=$7&$8=$9&$10=$11$12 RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).shtml(.*)$ $1.php?$2=$3&$4=$5&$6=$7&$8=$9$10 RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*)-(.*)_(.*).shtml(.*)$ $1.php?$2=$3&$4=$5&$6=$7$8 RewriteRule ^(.*)-(.*)_(.*)-(.*)_(.*).shtml(.*)$ $1.php?$2=$3&$4=$5$6 RewriteRule ^(.*)-(.*)_(.*).shtml(.*)$ $1.php?$2=$3$4 RewriteRule ^(.*).shtml$ $1.php
وحدث اني اريد تركيب هاك الفيبسو لاهميته زي ما انتم عارفين
فلما ركبت الهاك كان معاه ملف .htaccess والكود اللى في هو :
طبعا الموقع هو sa30di.comكود:# 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\.sa30di\.com #RewriteRule (.*) http://www.sa30di.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) #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 الى html
حتى الرئيسية مخليها php ومع الكود تظهر html
لذا اريد كود استطيع من خلاله جعل جميع الصفحات مثل ماهي بصيغة ال php لكن المنتدى اريده عادي بدون اكواد حتى يعمل ملف ال .htaccess بكفائه واستطيع بدء ارشفه جديده بوضع جديد
يا ليت القى حل ,وانا ادور على حل من يوم اخترعوا هاك فيبسو ..


رد مع اقتباس
