التغطية المصورة ليوم سوالف: الجزء الأول، الجزء الأخير
الفائزون في المسابقة الأصغر لسوالف كاست

 

العودة   سوالف سوفت > قسم تطوير المنتديات > الهاكات والإضافات
المدوّنات البحث مشاركات اليوم اجعل كافة المشاركات مقروءة

رد  
 
LinkBack أدوات الموضوع
عضو نشيط
تاريخ التسجيل: May 2006-
#1 (permalink)  
تحويل روابط منتداك من php لـ html وكسب صداقة محركات البحث


بسم الله

السلام عليكم

كيف حالكم يا اعضاء سوالف

هذا الموضوع يشرح كيف تحويل روابط منتداك من php الى html كي يكون صديق لمحركات البحث

اول شي نعمل ملف htaccess ونضعه في المجلد الرئيسي للمنتدى

ونضع بداخله هذي الاكواد

كود:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^getdaily.html$ search.php?do=getdaily [L]
RewriteRule ^getdaily([0-9]+).html$ search.php?do=getdaily&f=$1 [L]
RewriteRule ^unanswered.html$ search.php?do=process&replyless=1&replylimit=0&dontcache=1     [L]
RewriteRule ^unanswered([0-9]+).html$ search.php?do=process&replyless=1&replylimit=0&dontcache=1&forumchoice=$1&childforums=1 [L]
RewriteRule ^forum([0-9]+).html$        forumdisplay.php?f=$1         [L]
RewriteRule ^forum([0-9]+)-([0-9]+)-([a-z]+)-(.*)-([0-9]+)-(.*).html$ forumdisplay.php?f=$1&page=$2&sort=$3&order=$4&pp=$5&daysprune=$6 [L]
RewriteRule ^forum([0-9]+)-(.*)-([a-z]+)-([a-z]+).html$    forumdisplay.php?f=$1&daysprune=$2&order=$3&sort=$4     [L]
RewriteRule ^announcement([0-9]+).html$     announcement.php?f=$1     [L]
RewriteRule ^announcement([0-9]+)-([0-9]+).html$    announcement.php?f=$1&announcementid=$2 [L]
RewriteRule ^thread([0-9]+).html$     showthread.php?t=$1     [L]
RewriteRule ^thread([0-9]+)-([0-9]+).html$    showthread.php?t=$1&page=$2     [L]
RewriteRule ^getnew.html$ search.php?do=getnew [L]
RewriteRule ^getnew([0-9]+).html$ search.php?do=getnew&f=$1 [L]
RewriteRule ^printthread([0-9]+).html$    printthread.php?t=$1     [L]
RewriteRule ^sendthread([0-9]+).html$    sendmessage.php?do=sendtofriend&t=$1 [L]
RewriteRule ^referthread([0-9]+)-([0-9]+).html$ showthread.php?t=$1&referrerid=$2    [L]
RewriteRule ^lastpostinthread([0-9]+).html$ showthread.php?goto=lastpost&t=$1 [L]
RewriteRule ^newpostinthread([0-9]+).html$ showthread.php?goto=newpost&t=$1 [L]
RewriteRule ^nextnewesttothread([0-9]+).html$    showthread.php?t=$1&goto=nextnewest    [L]
RewriteRule ^nextoldesttothread([0-9]+).html$    showthread.php?t=$1&goto=nextoldest    [L]
RewriteRule ^post([0-9]+).html$     showthread.php?p=$1     [L]
RewriteRule ^post([0-9]+)-([0-9]+).html$    showpost.php?p=$1&postcount=$2    [L]
RewriteRule ^post([0-9]+)-([0-9]+)-([0-9]+).html$ showthread.php?p=$1&page=$2&pp=$3    [L]
RewriteRule ^thread([0-9]+)-([a-z]+).html$ showthread.php?mode=$2&t=$1    [L]
RewriteRule ^post([0-9]+)-([a-z]+).html$ showthread.php?p=$1&mode=$2    [L]
الان نذهب لملف includes/functions.php ونبحث عن التالي

كود:
function print_output($vartext, $sendheader = 1)
{
global $pagestarttime, $query_count, $querytime, $DB_site, $bbuserinfo;
global $vbphrase, $vboptions, $stylevar, $_REQUEST;
وضع بعدها

كود:
// do Dani's Search Engine Optimization optimization
global $session;
 
$search_array = array(
'#<a ([^>]*)href' . preg_quote("="forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&amp;page=") . '([0-9]+)' . preg_quote("&amp;sort=") . '([a-z]*)' . preg_quote("&amp;order="). '([a-z]*)' . preg_quote("&amp;pp=") . '([0-9]*)' . preg_quote("&amp;daysprune="). '([^"]*)"#',
'#<a ([^>]*)href' . preg_quote("="forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&amp;daysprune=") . '([^"]*)' . preg_quote("&amp;order=") . '([a-z]*)' . preg_quote("&amp;sort=") . '([a-z]*)' . preg_quote("&amp;pp=") . '([0-9]*)' . preg_quote("&amp;page=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&amp;daysprune=") . '([^"^&]*)' . preg_quote("&amp;order=") . '([a-z]*)' . preg_quote("&amp;sort=") . '([a-z]*)"#',
'#<a ([^>]*)href' . preg_quote("="forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&amp;daysprune="). '([^"^&]*)"#',
'#<a ([^>]*)href' . preg_quote("="forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&amp;page=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="forumdisplay.php?$session[sessionurl]f=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]t=") . '([0-9]+)' . preg_quote("&amp;page=") . '([0-9]*)' . preg_quote("&amp;pp=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]t=") . '([0-9]+)' . preg_quote("&amp;page=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]t=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]goto=lastpost&amp;t=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]goto=newpost&amp;t=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="printthread.php?$session[sessionurl]t=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="sendmessage.php?$session[sessionurl]do=sendtofriend&amp;t=") . '([0-9]+)"#', 
'#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]t=") . '([0-9]+)' . preg_quote("&amp;goto=next"). '([a-z]+)"#',
'#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]p=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]p=") . '([0-9]+)' . preg_quote("&amp;page=") . '([0-9]+)' . preg_quote("&amp;pp=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="showpost.php?$session[sessionurl]p=") . '([0-9]+)' . preg_quote("&amp;postcount=") . '([0-9]+)"#', 
'#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]mode=") . '([a-z]+)' . preg_quote("&amp;t=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="showthread.php?$session[sessionurl]p=") . '([0-9]+)' . preg_quote("&amp;mode=") . '([a-z]+)##', 
 
'#<a ([^>]*)href' . preg_quote("="announcement.php?$session[sessionurl]f=") . '([0-9]+)' . preg_quote("&amp;announcementid=") . '([0-9]+)"#',
'#<a ([^>]*)href' . preg_quote("="announcement.php?$session[sessionurl]f=") . '([0-9]+)"#',
 
// sanitizing
'#<a ([^>]*)href="([^"]*)&amp;page=([^"]*).html"#',
'#<a ([^>]*)href="([^"]*)&amp;highlight=([^"]*).html"#',
 
// other
'#<a ([^>]*)href' . preg_quote("="search.php?$session[sessionurl]do=getdaily&amp;f=") . '([0-9]*)"#',
'#<a ([^>]*)href' . preg_quote("="search.php?$session[sessionurl]do=getdaily") . '"#',
'#<a ([^>]*)href' . preg_quote("="search.php?$session[sessionurl]do=process&amp;replyless=1&amp;replylimit=0&amp;dontcache=1&amp;forumchoice=&amp;childforums=1") . '"#',
'#<a ([^>]*)href' . preg_quote("="search.php?$session[sessionurl]do=process&amp;replyless=1&amp;replylimit=0&amp;dontcache=1&amp;forumchoice=") . '([0-9]+)' . preg_quote("&amp;childforums=1") . '"#'
 
);
$replace_array = array(
'<a 1href="forum2-3-4-5-6-7.html"',
'<a 1href="forum2-7-5-4-6-3.html"',
'<a 1href="forum2-3-4-5.html"',
'<a 1href="forum2-3.html"',
'<a 1href="forum2-3.html"',
'<a 1href="forum2.html"',
'<a 1href="thread2-3.html"',
'<a 1href="thread2-3.html"',
'<a 1href="thread2.html"',
'<a 1href="lastpostinthread2.html"',
'<a 1href="newpostinthread2.html"',
'<a 1href="printthread2.html"',
'<a 1href="sendthread2.html"',
'<a 1href="next3tothread2.html"', 
'<a 1href="post2.html"', 
'<a 1href="post2-3-4.html"', 
'<a 1href="post2-3.html"', 
'<a 1href="thread3-2.html"', 
'<a 1href="post2-3.html#', 
 
'<a 1href="announcement2-3.html"',
'<a 1href="announcement2.html"',
 
// sanitizing
'<a 1href="2-3.html"',
'<a 1href="2-3.html"',
 
// other
'<a 1href="getdaily2.html"',
'<a 1href="getdaily.html"',
'<a 1href="unanswered.html"',
'<a 1href="unanswered2.html"'
 
);
$vartext = preg_replace($search_array, $replace_array, $vartext);
وبكذا تكون روابط منتداك تحولت لـ html


رابط الموضوع






Eywa غير متواجد حالياً   قديم 02-07-2007, 02:21 PM
رد مع اقتباس
عضو سوبر نشيط
تاريخ التسجيل: Apr 2004-
#2 (permalink)  

شرح رائع

جزاك الله كل خير



تحياتى






__________________
شبكة نكلاوى للأستضافة
http://www.neklawy.com
استضافة - ريسيلر - تطوير مواقع - حجز نطاقات

بريد او ماسنجر
info[@]neklawy.com
lo@rd medhat غير متواجد حالياً   قديم 02-07-2007, 08:45 PM
رد مع اقتباس
عضو فعال
تاريخ التسجيل: May 2007-
#3 (permalink)  

مشكور ربي يوفقك

حركة اكثر من رئاعه اخي الكريم

وفرت علينا كثيراً م الجهد

بس اخي الكريم حبيت اسنفسر كيف وضعت الارشيف في اخر الفوتر

2345678910111213141516171819202122232425262728293031323334353

والله يعطيك العافيه







التعديل الأخير تم بواسطة : sultanalmalki بتاريخ 03-07-2007 الساعة 01:23 AM.
sultanalmalki غير متواجد حالياً   قديم 03-07-2007, 01:21 AM
رد مع اقتباس
عضو فعال
تاريخ التسجيل: May 2007-
#4 (permalink)  

اخي الغالي عندما اعدل على الملف functions.php
يظهر لي هذا الخطأ
Parse error: syntax error, unexpected T_STRING in /home/eee/public_html/vb/vb/includes/functions.php on line 4862

اتمنى ايجاد حل






sultanalmalki غير متواجد حالياً   قديم 03-07-2007, 02:34 AM
رد مع اقتباس
عضو فعال
تاريخ التسجيل: Sep 2006-
#5 (permalink)  

الله يعطيك العافيهِ






__________________
لا إله الا الله .. سبحانك إني كنت من الظالمين
سبحانك الله و بحمدك .. سبحان الله العظيم
برامج | دليل مواقع
Gmc.9 غير متواجد حالياً   قديم 03-07-2007, 02:50 AM
رد مع اقتباس
عضو سوبر نشيط
تاريخ التسجيل: Apr 2004-
#6 (permalink)  

الله يعطيك العافيه اخوي

يالليت لو أحد طبق الطريقة .. يعطينا الرابط






__________________
فنتاستك لخدمات الواب

منتديات البرنس

أستغفرك ربي وأتوب إليك

support @ e-fantastic.com
البترولي غير متواجد حالياً   قديم 04-07-2007, 01:09 AM
رد مع اقتباس
عضو سوبر نشيط
تاريخ التسجيل: Nov 2005-
#7 (permalink)  

الحقيقة ، افضل طريقة لعمل هذه الحركة ، اما vbseo المدفوع او هاك Zoints Search Engine Optimization المجاني

لا توجد و لا أحبذ اي طريقة اخرى مضمونة غير هاذان الهاكان .

تحياتي لكم






__________________
لا تطمعن في كرم من غرته شهرته ، فقد نسي انه بالأمس نجح بكرم الاخرين
e107 المعربة www.e107arabic.org
شبكة الباتشات و السوفتوير www.all-patch.org
شركة استضافة مغربية www.naja7host.com
all-patch غير متواجد حالياً   قديم 04-07-2007, 06:04 AM
رد مع اقتباس
عضو فعال
تاريخ التسجيل: Feb 2003-
#8 (permalink)  

ماشي غير vBSEO






__________________
██████████
████الإمارات██
██████████
http://www.almotmaiz.net/
NLP غير متواجد حالياً   قديم 04-07-2007, 12:09 PM
رد مع اقتباس
عضو سوبر نشيط
تاريخ التسجيل: Jun 2004-
#9 (permalink)  

ممتاز جدا

ولكــن ....

ماهو مصير old-all-links.php



هنا السؤال

vBSEO قد يكون الخيار الانسب






__________________
أحفظ الله في السر والعلن
مغرور غير متواجد حالياً   قديم 04-07-2007, 12:43 PM
رد مع اقتباس
عضو نشيط
تاريخ التسجيل: May 2006-
#10 (permalink)  

اقتباس:
المشاركة الأصلية كتبت بواسطة asas7.com
مشكور ربي يوفقك

حركة اكثر من رئاعه اخي الكريم

وفرت علينا كثيراً م الجهد

بس اخي الكريم حبيت اسنفسر كيف وضعت الارشيف في اخر الفوتر

2345678910111213141516171819202122232425262728293031323334353

والله يعطيك العافيه
نفس السؤال

وشكرا لك






عذوووب غير متواجد حالياً   قديم 04-07-2007, 10:50 PM
رد مع اقتباس
فريق عمل ALEX IPC
تاريخ التسجيل: Jun 2003-
#11 (permalink)  

للعلم جربت هذا الشرح + غيره الكثير من الهاكات المعروفة وللاسف كلها ان تسوي مشاكل مع هاكات أأخرى والمشكلة الكبرى ترفع اللود بصورة مو طبيعية انصح عدم الاعتماد عليها والحل الوحيد
vbseo المدفوع
لانه الوحيد الى الان ماظهر منه مشاكل تذكر ابدا وأذا ظهرت تيقن ان يوجد شركة رسمية وفريق عمل يطورونه






__________________
Alex I.P.C
برمجة - تصميم - استضافة - سيرفرات
سكريبت دليل الروابط الخارجية
messenger@alexipc.com
Mobile/+20 111993631
alexipc.com غير متواجد حالياً   قديم 05-07-2007, 01:50 AM
رد مع اقتباس
رد


 

أدوات الموضوع

تعليمات المشاركة
لا تستطيع كتابة مواضيع
لا تستطيع كتابة ردود
لا تستطيع إرفاق ملفات
لا تستطيع تعديل مشاركاتك

كود [IMG] متاحة
كود HTML معطلة
Trackbacks are متاحة
Pingbacks are متاحة
Refbacks are متاحة


المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر مشاركة
مطلوب طريقة تحويل من asp الى php او html love4allah ASP و ASP.NET 2 11-06-2007 10:06 PM
دليل PHP الصغير سردال PHP 25 10-03-2006 02:19 AM
نبش أعماق الإنترنت mrhfalzman أخبار الإنترنت والتقنية ومناقشتها 2 28-10-2003 02:06 PM
من يتحدى جووووووووووووووووووجل ؟؟ عبد الله تقنية محركات البحث والـSearch Engine Optimization 8 13-12-2002 02:33 AM
ابحث واعرض من موقعك جميع محركات البحث PHP top7up تقنية محركات البحث والـSearch Engine Optimization 2 08-09-2002 10:48 AM


الساعة الآن: 01:49 PM بتوقيت المملكة العربية السعودية