.htaccess
Klasör Erişimleri
- Yetkilendirme ve Kimlik Doğrulama
- URL Yönlendirme (Rewriting URL)
- Dosya ve Dizinlere Erişimi Engelleme
- Dizin Listeleme
- Özel Hata Mesajları
- MIME/Dosya Türlerinin Belirlenmesi
- Önbellek Kontrolü
TÜM ERİŞİMİ KISITLAMAK
deny from all //Tüm erişimi kısıtlar
Tek IP ADRESİNE İZİN VERMEK
deny from all
allow from 178.62.246.245 // IP adresine izin verir.
Tek bir dosyaya erişim kontrolü.
<Files a.php>
Order allow,deny
Deny from all
</Files>
Sef Link
RewriteEngine On
RewriteRule ^b-sayfasi/$ b.php [L,QSA]

RewriteEngine On
RewriteRule ^bparam/([a-zA-Z0-9_-]+)/?(([0-9]+)/?)?$ b.php?username=$1&id=$2 [L,QSA]

Özel Hata Sayfası
ErrorDocument 404 hata.html
Varsayılan Açılış Sayfası
DirectoryIndex hosgeldiniz.html
Quiz
Answer the questions to check your understanding.
This lesson includes a short quiz.
Lesson discussion
Swap insights and ask questions about PHP Temel
Be the first to start the discussion
Ask a question or share your thoughts about this lesson.