Skip to content

Instantly share code, notes, and snippets.

@Khanashima
Created May 2, 2014 12:35
Show Gist options
  • Save Khanashima/11473892 to your computer and use it in GitHub Desktop.
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
* Set this to 'index.php if you don't use URL rewriting
*/
- //'index_file' => false,
+ 'index_file' => false,
#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