codeigniter + LAMPP, remove index.php

buat file .htaccess di folder code igniter

<htdocs>/<codeigniter>/.htaccess

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

ubah aturan apache 2 pada file httpd.conf

<Options FollowSymLinks>
    AllowOverride None
    #XAMPP
    #Order deny,allow
    #Deny from all
</Directory>

ubah menjadi

<Options FollowSymLinks>
Option Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>

restart server lampp dengan perintah

tetapi jika menggunakan virtual host

<Directory "/media/drive_c/wamp/www">
Options Indexes FollowSymLinks ExecCGI Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>

sudo /opt/lampp/lampp restart


Published by

G3n1k

just to remember what i had known :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s