Halaman

Selasa, 04 Maret 2014

.htaccess yang bikin Nyeri....!!!

Development dah hampir beres, tinggal isi content aja.... so dah siap untuk diupload....

Meluncur dalam waktu 5...4....3...2....1...

Swete.... CSS dan javascript ga ketemu..... WEB nya jadi BOTAAAAkkkk......!!!
Apa yang salah ya? setingan dah bener... module PHP yg diperluin semua dah diinstal, Apache module juga dah oke. Pokoknya gada bedanya sama web server yg dilokal.



OS :
  • Lokal -> Ubuntu
  • SERVER -> Ubuntu

Apache:
  • Lokal -> Apache2
  • SERVER -> Apache2
Database:
  • Lokal -> MySQL
  • SERVER -> MySQL
Betewe.. develop web ini ane pake Kohana Framework  MySQL buat databasenya...
Usut punya usut.. hasil googling ... ternyata eh ternyata, masalahnya adalah di .htaccess - nya...!
Iya .htaccess - nya

# ----
# Turn on URL rewriting
RewriteEngine On

# Installation directory
RewriteBase /

# Protect hidden files from being viewed
<Files .*>
Order Deny,Allow
Deny From All
</Files>

# Protect application and system files from being viewed
RewriteRule ^(?:application|modules|system)\b.* index.php/$0 [L]

# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT]

PERMASALAHAN BERADA DI REWRITERULE BARIS TERAKHIR...!!!


Index rewrite string in .htaccess causes "No input file specified" on fast_cgi

RewriteRule .* index.php/$0 [PT] <---- INI BIANG KEROKNYA......

SO Harus diubah jadi kaya gini :
RewriteRule .* index.php?/$0 [PT]

entah ini bug dari kohana atau emang fast_cgi nya......
Wallahualam.....

Tidak ada komentar:

Posting Komentar