Permalink
Browse files

fixed #22

  • Loading branch information...
1 parent 34a61e2 commit cf808d33b09251c2111bee0b23fba8cd032179c9 @hjue committed Oct 8, 2014
Showing with 4 additions and 3 deletions.
  1. +2 −1 .htaccess
  2. +2 −2 application/config/config.php
View
@@ -2,6 +2,7 @@
order allow,deny
deny from all
</files>
+RewriteBase /
RewriteEngine on
RewriteCond $1 !^(index\.php|css|styles|posts|images|templates|robots\.txt)
-RewriteRule ^(.*)$ /index.php/$1 [L]
+RewriteRule ^(.*)$ /index.php?/$1 [L]
@@ -44,8 +44,8 @@
| 'ORIG_PATH_INFO' Uses the ORIG_PATH_INFO
|
*/
-// $config['uri_protocol'] = 'AUTO';
-$config['uri_protocol'] = isset($_SERVER['REQUEST_URI']) ? 'PATH_INFO' : 'CLI';
+$config['uri_protocol'] = 'AUTO';
+// $config['uri_protocol'] = isset($_SERVER['REQUEST_URI']) ? 'PATH_INFO' : 'CLI';
/*
|--------------------------------------------------------------------------

0 comments on commit cf808d3

Please sign in to comment.