تطبيق تعليم مهمه لكل برمجه وصفحات [htaccess] شرح عملها واستخدامها

مشاهدات الان
sfehthayef.blogspot.com
- الاسم بالعربيه × هتكس
- الاسم بالانجليزي × htaccess
باختصار شديد وسريع : هو برمجه عامه لتسريع اي صيغه من الصيغات المستخدمه في الانترنت
- لـ صفحات او العاب او غير هذا
* ترفع في كل ملف × بمثال المنتدي تجد فيها
* وبعض السكربتات تجدها
- واضافتها مهمه × ليريحك في التصفح السريع
! نتابع كيفيت التطبيق لمثال
[htaccess] تسريع الصفحات و عرض الصور
في بعض الاحيان نحتاج تسريع للصفحات و خاصة أنه في كل زيارة للصفحة يتم تحميل الصور و الفلاش مباشرة في كل زيارة لذلك تستطيع أن تلغي ذلك بتحديثها مرة في الشهر وبهذا تكون أفضل و أسرع بكثير، ولكن تحتاج بعض الإعدادات في السيرفر، وإن كان أغلب أصحاب السيرفرات يوفرونها، وأيضاً لك و تفعيل عمل Module mod_expires، و تستطيع التحكم بالمدة
مثال:أنشئ ملف بإسم htaccess. وضع فيه:
ExpiresActive On
 ExpiresByType image/gif “access 1 week”
ExpiresByType image/jpg “access 1 week”
ExpiresByType image/jpeg “access 1 week”
ExpiresByType image/png “access 1 week”
ExpiresByType gif “access 1 week”
ExpiresByType jpg “access 1 week”
الآن سوف يتم عرض الصور مرة واحدة عند أول زيارة لمدة أسبوع (week) للصور في الجذر الرئيسي و التي في مجلد image و تم تحديد نوع الملفات بأنها صور من نوع gif , jpg , png ، وتستطيع إضافة امتدادات أخرى أو تغييرها .تستطيع تطبيق ذلك أيضاً مع ملفات الفلاش والـ cssوغيرهامثال:
ExpiresByType css/css “access 1 week”
ExpiresByType js/js “access 1 week”
ExpiresByType application/x-shockwave-flash “access 1 week”
ExpiresByType application/x-javascript “access 1 week”
اقتباس:
 * للفهم السريع <<< مع الترجمه
ExpiresActive On تنتهي بالموقع على
ExpiresByType تنتهي حسب نوع
access الوصول
week أسبوع
Htaccess Tools - get help with your .htaccess files
أدوات هتكس - الحصول على مساعدة مع الملفات هتكس
http://www.htaccesstools.com/
PHPBB3 HTTP input character conversion mbstring.http_input must be set to pass
http://kb.ifastnet.com/index.php?/article/AA-00229/28/Free-Hosting/Popular-Scripts/PHPBB3-HTTP-input-character-conversion%3A-mbstring.http_input-must-be-set-to-pass.html
http://kb.ifastnet.com/index.php?/getAttach/15/AA-00229/.htaccess
محتواه
#
# Uncomment the statement below if you want to make use of
# HTTP authentication and it does not already work.
# This could be required if you are for example using PHP via Apache CGI.
#
#<IfModule mod_rewrite.c>
#RewriteEngine on
#RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
#</IfModule>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
php_value mbstring.http_input pass
Order Deny,Allow
Deny from hkrkoz

اذا حبيت نسخ المقالهـ

ليست هناك تعليقات:

إرسال تعليق