Konfigurasi HTACCESS untuk SEME FRAMEWORK

Menyembunyikan ekstensi PHP sebetulnya tidaklah sulit, berikut ini adalah konfigurasi htaccess untuk seme framework
144  
       

Berikut ini adalah konfigurasi htaccess untuk seme framework di localhost (XAMPP)

RewriteEngine on

RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 

Berikut ini adalah konfigurasi htaccess untuk seme framework di shared hosting Apache

RewriteEngine on
RewriteBase /
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA] 

FYI, konfigurasi htaccess ini bisa juga digunakan untuk framework CodeIgniter.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>