Skip to content

Instantly share code, notes, and snippets.

@bennet-esyoil
Created May 16, 2019 05:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennet-esyoil/e31d79f0ab9051e1bb07073814d9e697 to your computer and use it in GitHub Desktop.
Save bennet-esyoil/e31d79f0ab9051e1bb07073814d9e697 to your computer and use it in GitHub Desktop.
Options +FollowSymLinks
RewriteEngine On
RewriteRule !\.(ico|gif|jpg|png|css|js|swf|flv|map|ttf|woff|woff2|svg|min.js) index.php [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)/(assets|plugins|css|png|img|imgs|js)/(.*) _views/$2/$3 [L,NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ \_views/$1 [NC,L]
<Files config.json>
Order allow,deny
Deny from all
</Files>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment