Skip to content

Instantly share code, notes, and snippets.

@cengkuru
Created May 21, 2018 22:25
Show Gist options
  • Save cengkuru/5ea88ae892c2bef7709f28eb0ad9c7f4 to your computer and use it in GitHub Desktop.
Save cengkuru/5ea88ae892c2bef7709f28eb0ad9c7f4 to your computer and use it in GitHub Desktop.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !\.(css|gif|ico|jpg|js|png|swf|txt)$
RewriteCond $1 !^(index\.php|images|captcha|css|js|robots\.txt|favicon\.ico)
RewriteRule ^(.*)$ /index.php/$1 [L]
<Files "index.php">
AcceptPathInfo On
</Files>
<IfModule mod_php5.c>
php_value memory_limit 64M
</IfModule>
# php -- BEGIN cPanel-generated handler, do not edit
# Set the “ea-php56” package as the default “PHP” programming language.
<IfModule mime_module>
AddType application/x-httpd-ea-php56 .php .php5 .phtml
</IfModule>
# php -- END cPanel-generated handler, do not edit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment