Skip to content

Instantly share code, notes, and snippets.

@paul-yamamoto
Created November 8, 2012 03:37
Show Gist options
  • Save paul-yamamoto/4036574 to your computer and use it in GitHub Desktop.
Save paul-yamamoto/4036574 to your computer and use it in GitHub Desktop.
VirtualDocumentRootでのCakePHPの設定
VirtualDocumentRootではCakePHPのModRewriteが無限ループに陥る。
これを防ぐために、.htaccessに以下の設定が必要
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment