استعمل مربع البحث في الاسفل لمزيد من المواضيع
سريع للبحث عن مواضيع في المنتدى
-
11-01-2013, بتوقيت غرينيتش 06:39 PM
#1
ملف الروبوتس خاص للورد بريس مع اضافة للهدر
نفتح قالب template الهيدر header ونضيف عليه header.php
رمز Code:
<?php if(is_single() || is_page() || is_home()) { ?> <meta name="googlebot" content="index,noarchive,follow,noodp" /> <meta name="robots" content="all,index,follow" /> <meta name="msnbot" content="all,index,follow" /> <?php } else { ?> <meta name="googlebot" content="noindex,noarchive,follow,noodp" /> <meta name="robots" content="noindex,follow" /> <meta name="msnbot" content="noindex,follow" /> <?php }?>
بعد ذلك نفتح الاف تي بي ونضيف على ملف المجلة هذا الروبوتس
هذا الملف يسمى ب seo robots
رمز Code:
User-agent: * # disallow all files in these directories Disallow: /cgi-bin/ Disallow: /z/j/ Disallow: /z/c/ Disallow: /stats/ Disallow: /dh_ Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /contact/ Disallow: /tag/ Disallow: /wp-content/b Disallow: /wp-content/p Disallow: /wp-content/themes/askapache/4 Disallow: /wp-content/themes/askapache/c Disallow: /wp-content/themes/askapache/d Disallow: /wp-content/themes/askapache/f Disallow: /wp-content/themes/askapache/h Disallow: /wp-content/themes/askapache/in Disallow: /wp-content/themes/askapache/p Disallow: /wp-content/themes/askapache/s Disallow: /trackback/ Disallow: /*?* Disallow: */trackback/ User-agent: Googlebot # disallow all files ending with these extensions Disallow: /*.php$ Disallow: /*.js$ Disallow: /*.inc$ Disallow: /*.css$ Disallow: /*.gz$ Disallow: /*.cgi$ Disallow: /*.wmv$ Disallow: /*.png$ Disallow: /*.gif$ Disallow: /*.jpg$ Disallow: /*.cgi$ Disallow: /*.xhtml$ Disallow: /*.php* Disallow: */trackback* Disallow: /*?* Disallow: /z/ Disallow: /wp-* Allow: /wp-content/uploads/ # allow google image bot to search all images User-agent: Googlebot-Image Allow: /* # allow adsense bot on entire site User-agent: Mediapartners-Google* Disallow: /*?* Allow: /z/ Allow: /about/ Allow: /contact/ Allow: /wp-content/ Allow: /tag/ Allow: /manual/* Allow: /docs/* Allow: /*.php$ Allow: /*.js$ Allow: /*.inc$ Allow: /*.css$ Allow: /*.gz$ Allow: /*.cgi$ Allow: /*.wmv$ Allow: /*.cgi$ Allow: /*.xhtml$ Allow: /*.php* Allow: /*.gif$ Allow: /*.jpg$ Allow: /*.png$ # disallow archiving site User-agent: ia_archiver Disallow: / # disable duggmirror User-agent: duggmirror Disallow: /
طعبا" بعض المعلومات
نضع هذا الكود code مع التعديل اذا رادنا رفض كل الملفات
رمز Code:
User-agent: * Disallow: /cgi-bin/ Disallow: /z/j/ Disallow: /z/c/ Disallow: /stats/ Disallow: /dh_ Disallow: /about/ Disallow: /contact/ Disallow: /tag/ Disallow: /wp-admin/ Disallow: /wp-includes/ Disallow: /contact Disallow: /wp- Disallow: /feed/ Disallow: /trackback/
ونضع هذا الكود code يمكنك التعديل عليه اذا رادت منع صيغ معينة
رمز Code:
User-agent: Googlebot Disallow: /*.php$ Disallow: /*.js$ Disallow: /*.inc$ Disallow: /*.css$ Disallow: /*.gz$ Disallow: /*.wmv$ Disallow: /*.cgi$ Disallow: /*.xhtml$
وهذا الكود code للسماح ل google بارشفة indexation كل صورة
رمز Code:
User-agent: Googlebot-Image Disallow: Allow: /*
وهذا الكود code للسماح ل google adsense بالدخول لكل الموقع
رمز Code:
User-agent: Mediapartners-Google* Disallow: Allow: /*
ملاحظة: هذا من شرح طريقةي ولا اعلم اذا وجدت بالمعهد من قبل واتمى ذكر المصدر
http://www.allsyria.net/vb/t53281.html
الملفات المرفقة [TR]
robots.txt.txt (1.8 كيلوبايت, عدد مرات المشاهدة 80 مرة) [/TR]
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى©
المواضيع المتشابهه
-
بواسطة salima في المنتدى مدونة وورد بريس WordPress
مشاركات: 0
آخر مشاركة: 11-01-2013, بتوقيت غرينيتش 09:00 AM
-
بواسطة Chakira في المنتدى مدونة وورد بريس WordPress
مشاركات: 0
آخر مشاركة: 11-01-2013, بتوقيت غرينيتش 08:53 AM
-
بواسطة said في المنتدى مدونة وورد بريس WordPress
مشاركات: 0
آخر مشاركة: 11-01-2013, بتوقيت غرينيتش 08:48 AM
-
بواسطة Chakira في المنتدى مدونة وورد بريس WordPress
مشاركات: 0
آخر مشاركة: 11-01-2013, بتوقيت غرينيتش 08:45 AM
-
بواسطة salima في المنتدى مدونة وورد بريس WordPress
مشاركات: 0
آخر مشاركة: 11-01-2013, بتوقيت غرينيتش 08:37 AM
ضوابط المشاركة
- لا تستطيع إضافة مواضيع جديدة
- لا تستطيع الرد على المواضيع
- لا تستطيع إرفاق ملفات
- لا تستطيع تعديل مشاركاتك
-
قوانين المنتدى