الموضوع: كل ما يمكنك فعله بملف htaccess
عرض مشاركة واحدة
Error******** 404 http://www.traidnt.net/404.html
[font="System"]Error******** 400 http://www.traidnt.net/400.html [/font][font="System"]Error******** 401 http://www.traidnt.net/401.html [/font]
[font="System"]Username1:Password1 [/font][font="System"]Username2:Password2 [/font][font="System"]Username3:Password3 [/font]
kattan:vrAQKeuzMpslh
AuthUserFile /usr/local/you/safedir/.htpasswd
[font="System"]AuthGroupFile /dev/null [/font][font="System"]AuthName [أدخل اسم المستخدم و كلمة المرور] [/font][font="System"]AuthType Basic [/font][font="System"]<Limit GET POST> [/font][font="System"]order allow,deny [/font][font="System"]allow from all [/font][font="System"]require valid-user [/font][font="System"]</limit> [/font][font="System"][/font]
http://usernameassword@www.website.com/directory/
[font="System"][/font]
files 'prog.exe|pass.php|file.zip'>
[font="System"]AuthUserFile [/path/to/file] [/font][font="System"]AuthType Basic [/font][font="System"]AuthName [**** that prompts the user] [/font][font="System"]require valid-user [/font][font="System"][/font]
DirectoryIndex index.htm index.html index.php
DirectoryIndex [file]
AddType ****/html [Extension 1] [Extension 2]
[font="System"]AddHandler server-parsed [Extension 1] [Extension 2] [/font]
[font="System"]AddType ****/html .dhtml .html [/font][font="System"]AddHandler server-parsed .dhtml .html[/font]
[font="System"]RewriteEngine on [/font][font="System"]RewriteCond %{HTTP_REFERER} ^$ [OR] [/font][font="System"]RewriteCond %{HTTP_REFERER} !^http://site/.com/.*$ [NC] [/font][font="System"]RewriteCond %{HTTP_REFERER} !^http://www/.site/.com/.*$ [NC] [/font][font="System"]RewriteRule .*.([jpg|gif|jpe?g]+)$ - [NC,F] [/font][font="System"][/font]
Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html
IndexIgnore *
IndexIgnore *.gif *.jpg
deny from 000.000.000.000
allow from 000.000.000.000
[font="System"]deny from 212.212.212.1 [/font][font="System"]deny from 212.212.212.2 [/font][font="System"]allow from 212.212.212.1 [/font][font="System"]allow from 212.212.212.2 [/font][font="System"][/font][font="System"][/font]
deny from 000.000.000.
allow from 000.000.000.
deny from all
AddType application/x-shockwave-***** swf
AddType audio/x-midi mid
AddType audio/x-pn-realaudio .real
php_value upload_max_filesize 20M php_value post_max_size 20M