can anyone tell me why my redirect helper doesn't work the way i'd expect. i'm trying to redirect to the index method of my main controller like so:
if($provider == '') {
redirect('/index/provider1/', 'location');
}
but that takes me www.mysite.com/index/provider1/ when it should go to www.mysite.com/provider1.
does that make sense can anyone give any advice? this is what my htaccess looks like and i have index_page in config set to blank, although i don't think that the issue is htaccess here it is in case:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^(index\.php|files|images|js|css|robots\.txt|favicon\.ico)
RewriteCond %{HTTP_HOST} ^mysite.com/ttnf/
RewriteRule (.*) http://www.mysite.com/ttnf/$1 [R=301,L]
RewriteBase /ttnf/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
php_flag display_errors On