المشاركات 11,551 |
+التقييم 321 |
تاريخ التسجيل Jul 2015 |
الاقامة فى الدنيا |
نظام التشغيل windows 8 |
رقم العضوية 18 |
400 Bad Request
401 Authorization Required
402 Payment Required (not used yet)
403 Forbidden
404 Not Found وهذا الخطأ لعدم توفر الصفحة .
405 Method Not Allowed
406 Not Acceptable (encoding)
407 Proxy Authentication Required
408 Request Timed Out
409 Conflicting Request
410 Gone
411 Content Length Required
412 Precondition Failed
413 Request Entity Too Long
414 Request URI Too Long
415 Unsupported Media Type
500 Internal Server Error
501 Not Implemented
502 Bad Gateway
503 Service Unavailable
504 Gateway Timeout
505 HTTP Version Not Supported
400 – Bad Request .. وتعني طلب خاطئ للصفحة 401 – Authorization Required … وتعني انه غير مرخص للزائر بعرض الصفحة 403 – Forbidden .. وتعني انه ممنوع للزائر من دخول الصفحة 404 – File not found … وتعني أن الصفحة التي قام الزائر بطلبها غير موجودة 500 – Internal Server Error وتعني أن هناك خطأ في خادم الموقع 503 – Service Unavailable … وتعني أن الخدمة غير متوفرة
ErrorDocument [عنوان الخطأ ] [رقم الخطاء] ErrorDocument .. وهي الدالة الخاصة بصفحة بتعيين صفحة الخطأ
ErrorDocument 400 /errors/badrequest.html ErrorDocument 401 /errors/authreqd.html ErrorDocument 403 /errors/forbid.html ErrorDocument 404 /errors/notfound.html ErrorDocument 500 /errors/serverr.html
AuthUserFile /usr/local/you/safedir/.htpasswd AuthGroupFile /dev/null AuthName [أدخل اسم المستخدم و كلمة المرور] AuthType Basic order allow,deny allow from all require valid-user
AuthType Basic AuthName "stop"
badr:e1a378b86bc5c0203239b935e2964ba3
AuthUserFile [/path/to/file] AuthType Basic AuthName [Text that prompts the user] require valid-user
AddType text/html [Extension 1] [Extension 2] AddHandler server-parsed [Extension 1] [Extension 2]
AddType text/html .dhtml .html AddHandler server-parsed .dhtml .html
deny from 000.000.000.000
allow from 000.000.000.000
deny from 212.212.212.1 deny from 212.212.212.2 allow from 212.212.212.1 allow from 212.212.212.2
deny from 000.000.000. .
allow from 000.000.000.
deny from all
RewriteEngine On RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] RewriteCond %{HTTP_USER_AGENT} ^Bot mailto: craftbot@yahoo.com [OR] RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR] RewriteCond %{HTTP_USER_AGENT} ^Custo [OR] RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR] RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR] RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR] RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR] RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR] RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR] RewriteCond %{HTTP_USER_AGENT} ^HMView [OR] RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^Image Stripper [OR] RewriteCond %{HTTP_USER_AGENT} ^Image Sucker [OR] RewriteCond %{HTTP_USER_AGENT} Indy Library [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR] RewriteCond %{HTTP_USER_AGENT} ^Internet Ninja [OR] RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR] RewriteCond %{HTTP_USER_AGENT} ^JOC Web Spider [OR] RewriteCond %{HTTP_USER_AGENT} ^larbin [OR] RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR] RewriteCond %{HTTP_USER_AGENT} ^Website Quester [OR] RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR] RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR] RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR] RewriteCond %{HTTP_USER_AGENT} ^Wget [OR] RewriteCond %{HTTP_USER_AGENT} ^Widow [OR] RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR] RewriteCond %{HTTP_USER_AGENT} ^Xaldon WebSpider [OR] RewriteCond %{HTTP_USER_AGENT} ^Zeus RewriteRule ^.* – [F,L]
RewriteEngine on RewriteBase /jadweb RewriteRule ^ jadweb/home.ar$ home.php
RewriteEngine on RewriteCond %{HTTP_HOST} ^user.website.com [NC] RewriteRule ^(.*)$ /file.php?id=user [R=301]
DirectoryIndex index.htm index.html index.php
DirectoryIndex [file]
Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html
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"
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"
deny from all php_flag engine off
php_flag register_globals on
php_flag register_globals off
RewriteEngine on RewriteCond %{HTTP_REFERER} ^$ [OR] RewriteCond %{HTTP_REFERER} !^http://site/.com/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www/.site/.com/.*$ [NC] RewriteRule .*.([jpg|gif|jpe?g]+)$ – [NC,F]
http://site.com/
http://www.site.com/
IndexIgnore *
IndexIgnore *.gif *.jpg
AddType application/x-shockwave-flash swf
AddType audio/x-midi mid
AddType audio/x-pn-realaudio .real
SecFilterScanPOST Off
RewriteEngine On RewriteRule ^(.+) http://site.com/$1 [R,L]
اضافة رد
|
شرح عمل جميع أوامر ملف .htaccess في الموقع بكل بساطة
|
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
[blogger] ممكن طريقة اخفاء جميع المقالات من رئيسية الموقع | أيهم | ركن تطوير المواقع | 0 | 11-20-2020 05:21 PM |
ربط ملف .htaccess بالصفحه | Mohamed yasser | ركن تطوير المواقع | 3 | 06-14-2019 07:45 PM |
حذف وتفريغ كاش الموقع لتسريع المنتدى او الموقع اثناء التصفح | هيلبرنت | ركن تطوير منتديات vb3.8.0 | 5 | 12-06-2018 09:41 AM |
تم العثور على مشكلات حرجة متعلقة بسلامة الموقع - التحقق من سلامة الموقع | abumosa | ركن مشاكل وطلبات المنتديات | 10 | 01-01-2017 01:01 AM |
كيف اضع جميع الاعلانات في جميع صفحات الموقع | تامر بحر الثلاثين | ركن مشاكل وطلبات المنتديات | 2 | 05-09-2016 10:20 PM |