KodFeed İLMİN ZEKATI…

22Oca/120

Kohana Framework’te adresten index.php silme

Kohana Php FrameworkKohana Framework'te adresler, www.example.com/index.php/controller/action şeklinde olmakta. Adresten index.php'yi kaldırmak için aşağıdaki .htaccess dosyasını root dizininde oluşturmanız yeterlidir.

# Remove index.php from url
# Turn on URL rewriting
RewriteEngine On

# Put your installation directory here:
# If your URL is www.example.com/kohana/, use /kohana/
# If your URL is www.example.com/, use /
RewriteBase /

RewriteRule ^(?:application|modules|system)\b - [F,L]
RewriteRule ^(application|modules|system)/ - [F,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php [PT,L]
VN:F [1.9.14_1148]
Rating: 9.0/10 (1 vote cast)
VN:F [1.9.14_1148]
Rating: 0 (from 0 votes)
Kohana Framework'te adresten index.php silme, 9.0 out of 10 based on 1 rating
Etiketler: , Yorum gönder.
Yorumlar (0) Geri izlemeler (0)

Yorum yapılmadı.


Leave a comment

(required)

Geri izleme yok.