Skip to content

Instantly share code, notes, and snippets.

@intruxxer
Last active December 29, 2015 04:29
Show Gist options
  • Save intruxxer/7615262 to your computer and use it in GitHub Desktop.
Save intruxxer/7615262 to your computer and use it in GitHub Desktop.
1. enable mod_rewrite: a2enmod rewrite
2. overwrite index.php via .htaaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1
3. $config['index_page'] = 'index.php' -> $config['index_page'] = '';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment