العودة   شبكة آرا ويب التطويرية > المنتديات > تطوير المنتديات


تحويل روابط منتداك من php لـ html وكسب صداقة محركات البحث

جميع برامج المنتديات phpbb , vb, وغيرها ...


إضافة رد
 
LinkBack أدوات الموضوع طريقة عرض الموضوع
قديم 02-Jul-2007, 09:37 AM   #1 (permalink)
عضو مميز
 
تاريخ التسجيل: May 2007
الدولة: مصر
المشاركات: 303
افتراضي تحويل روابط منتداك من php لـ html وكسب صداقة محركات البحث

السلام عليكم

كيف الحال يا اعضاء شبكة آرا ويب لخدمات الانترنت

طبعا الموضوع من منتدى اجنبي وشخصيا الهاك افادني كثير في قوقل

وحبيت افيدكم فيه


هذا الموضوع اهداء لـ x_5 على ما يقدمه للمعهد ولكل الاعضاء


أول خطوه اعمل ملف 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 SEO 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="forum\2-\3-\4-\5-\6-\7.html"',
'<a \1href="forum\2-\7-\5-\4-\6-\3.html"',
'<a \1href="forum\2-\3-\4-\5.html"',
'<a \1href="forum\2-\3.html"',
'<a \1href="forum\2-\3.html"',
'<a \1href="forum\2.html"',
'<a \1href="thread\2-\3.html"',
'<a \1href="thread\2-\3.html"',
'<a \1href="thread\2.html"',
'<a \1href="lastpostinthread\2.html"',
'<a \1href="newpostinthread\2.html"',
'<a \1href="printthread\2.html"',
'<a \1href="sendthread\2.html"',
'<a \1href="next\3tothread\2.html"', 
'<a \1href="post\2.html"', 
'<a \1href="post\2-\3-\4.html"', 
'<a \1href="post\2-\3.html"', 
'<a \1href="thread\3-\2.html"', 
'<a \1href="post\2-\3.html#', 
 
'<a \1href="announcement\2-\3.html"',
'<a \1href="announcement\2.html"',
 
// sanitizing
'<a \1href="\2-\3.html"',
'<a \1href="\2-\3.html"',
 
// other
'<a \1href="getdaily\2.html"',
'<a \1href="getdaily.html"',
'<a \1href="unanswered.html"',
'<a \1href="unanswered\2.html"'
 
);
$vartext = preg_replace($search_array, $replace_array, $vartext);

وبكذا تكون جعلت موقعك متوافق مع محركات البحث من ناحية تحويل الروابط لـ html



لا تحرمونا من دعواتكم
__________________
*** شبكة آرار ويب ***
http://www.arawebserv.com
فريق دعم آرا ويب

التعديل الأخير تم بواسطة هانى الشامى ; 02-Jul-2007 الساعة 09:41 AM
هانى الشامى غير متواجد حالياً   رد مع اقتباس
Sponsored Links
إضافة رد

أدوات الموضوع
طريقة عرض الموضوع

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

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


المواضيع المتشابهه
الموضوع كاتب الموضوع المنتدى مشاركات آخر رد
:[ كود تحويل روابط خيالي : جافا سكربت ]: araweb لغات برمجة المواقع 19 12-May-2010 09:01 AM
الأن لحق حالك وضيف موقعك على اقوى محركات البحث في اقل وقت وأقل مجهود هانى الشامى تطوير المنتديات 6 09-Sep-2008 02:53 PM
الان مع شبكة الحل الامثل ارسل موقعك الى محركات البحث بسهوله هانى الشامى تطوير المواقع 1 19-Feb-2008 08:22 PM
الآن ضيف موقعك بقوقل ومع كثير من محركات البحث العالمية ! هانى الشامى تطوير المواقع 0 09-Jul-2007 10:06 AM
[] هل تود أن تعرف [] كم صفحة لموقعك [] مؤرشفة في محركات البحث العالمية []اذا تفضل [] هانى الشامى تطوير المواقع 0 09-Jul-2007 08:36 AM




الساعة الآن 01:55 AM.

أقسام المنتديات

الاقسام العامة * البرامج الكاملة والنادرة Programs * معرض التصاميم وبرامج التصميم * المنتديات * تطوير المنتديات * استايلات النسخة الثالثة * تطوير المواقع * الاقسام الادارية * الشكاوي والملاحظات والطلبات * قسم المشرفين * عروض البيع والشراء * التقنيه و الأمن و الحماية * لغات برمجة المواقع * صيانة و دعم فني منتديات و حل مشاكل المواقع * المواقع و السيرفرات * مكتبة هاكات الجيل الثالث * حماية المواقع و سد ثغرات المنتديات * السيرفرات * ** منتدى الدورات المجانية الخاصة ** * الكمبيوتر و الأنترنت و الجوال * برامج الجوال Mobile Software * قسم ألعاب Mobile Games & خلفيات , ثيمات & Mobile Graphics * قسم الرسائل والمسجات Mobile SMS ورسائل MMS * صيانة الحاسوب Computer Maintenance * ألعاب الكمبيوتر PC Games * وظائف و توظيف (طلب وظيفة - طلب موظفين) * ارشفة المواقع و صداقة محركات البحث سيو SEO * جوجل ادسنس Google Adsense * منتديات الجيل الرابع 4.0.0 * الواجهات والقوالب والتصاميم الجاهزه * السكربتات والاكواد و برامج ادارة المحتوى * استايلات النسخة الرابعه * مكتبة هاكات الجيل الرابع *



Powered by vBulletin Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
devloped - by m4arabs : Search Engine Friendly URLs by vBSEO 3.3.0

Protected by ArSup.Net
  جميع الحقوق محفوظة لمنتديات شبكة آرا ويب لخدمات الانترنت © 2007