Created
May 2, 2014 12:35
-
-
Save Khanashima/11473892 to your computer and use it in GitHub Desktop.
【FuelPHP ver1.7.1】URLのindex.phpを取る ref: http://qiita.com/kiimiiis/items/507d293976fe87e7f0b9
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
* Set this to 'index.php if you don't use URL rewriting | |
*/ | |
- //'index_file' => false, | |
+ 'index_file' => false, |
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
#Remove index.php from URL | |
- #RewriteCond %{HTTP:X-Requested-With} !^XMLHttpRequest$ | |
- #RewriteCond %{THE_REQUEST} ^[^/]*/index\.php [NC] | |
- #RewriteRule ^index\.php(.*)$ $1 [R=301,NS,L] | |
+ RewriteCond %{HTTP:X-Requested-With} !^XMLHttpRequest$ | |
+ RewriteCond %{THE_REQUEST} ^[^/]*/index\.php [NC] | |
+ RewriteRule ^index\.php(.*)$ $1 [R=301,NS,L] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment