المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : ملف الروبوتس خاص للورد بريس مع اضافة للهدر



said
11-01-2013, بتوقيت غرينيتش 06:39 PM
نفتح قالب template الهيدر header ونضيف عليه header.php

رمز Code:
<?php if(is_single() || is_page() || is_home()) { ?> <meta name=&quot;googlebot&quot; content=&quot;index,noarchive,follow,noodp&quot; /> <meta name=&quot;robots&quot; content=&quot;all,index,follow&quot; /> <meta name=&quot;msnbot&quot; content=&quot;all,index,follow&quot; /> <?php } else { ?> <meta name=&quot;googlebot&quot; content=&quot;noindex,noarchive,follow,noodp&quot; /> <meta name=&quot;robots&quot; content=&quot;noindex,follow&quot; /> <meta name=&quot;msnbot&quot; content=&quot;noindex,follow&quot; /> <?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: /

طعبا&quot; بعض المعلومات

نضع هذا الكود 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


الملفات المرفقة
http://www.traidnt.net/vb/images/attach/txt.gif robots.txt.txt (http://www.traidnt.net/vb/attachments/335042d1231789816-robots.txt.txt) (1.8 كيلوبايت, عدد مرات المشاهدة 80 مرة)


https://fbcdn-sphotos-d-a.akamaihd.net/hphotos-ak-ash4/482113_236967293114455_1193518507_n.png (http://www.dzbatna.com)
©المشاركات المنشورة تعبر عن وجهة نظر صاحبها فقط، ولا تُعبّر بأي شكل من الأشكال عن وجهة نظر إدارة المنتدى (http://www.dzbatna.com)©

استعمل مربع البحث في الاسفل لمزيد من المواضيع


سريع للبحث عن مواضيع في المنتدى