Skip to content

Instantly share code, notes, and snippets.

@supanadit
Created August 1, 2019 03:24
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save supanadit/24d7cbb4fe045ddfa1a2e6671df859bd to your computer and use it in GitHub Desktop.
Save supanadit/24d7cbb4fe045ddfa1a2e6671df859bd to your computer and use it in GitHub Desktop.
<IfModule mod_rewrite.c>
Options -Indexes
RewriteEngine On
RewriteCond $1 !^(index\\.php|resources|robots\\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php?/$1 [L,QSA]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment