Created
November 8, 2012 03:37
-
-
Save paul-yamamoto/4036574 to your computer and use it in GitHub Desktop.
VirtualDocumentRootでのCakePHPの設定
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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