Codeigniter .htaccess issue on PHP-CGI, WebHero Hosting
.htaccess part will be:
RewriteEngine On
RewriteBase /
RewriteCond %{ENV:REDIRECT_APP_PATH} !^$
RewriteRule ^(.*)$ – [E=APP_PATH:%{ENV:REDIRECT_APP_PATH}]
RewriteCond %{ENV:APP_PATH} ^$
RewriteRule ^(.*)$ – [E=APP_PATH:/$1]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php [L]
Codgienter Part (config.php):
$config[‘uri_protocol’] = “APP_PATH”;//’REQUEST_URI’;
Last updated: March 19, 2014