Skip to content

Instantly share code, notes, and snippets.

@koffisani
Created October 12, 2016 11:05
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 koffisani/f8901b62089d4f9083f90737097d1d0a to your computer and use it in GitHub Desktop.
Save koffisani/f8901b62089d4f9083f90737097d1d0a to your computer and use it in GitHub Desktop.
.htaccess for CakePhp3 root folder
# .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment