Konfigurasi HTACCESS untuk SEME FRAMEWORK

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

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

Kode Sumber
1
2
3
4
5
6
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

Kode Sumber
1
2
3
4
5
6
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>