I am developing a shopping cart site using Codeigniter Gocart script. I hid index.php using htaccess. When I try to login using localhost/project143/secure/login, it works fine and goes to login page. But when I try the login link in live as hostname/projects/project143/secure/login, it redirects to home page instead of login page.The login page with index.php in the URL (http://hostname/projects/project143/index.php/secure/login) is opening login page well. I've attached the screenshot of my issue and redirection code for clarification. Anyone knows this issue and fix ?
.htaccess
RewriteEngine on
RewriteBase /projects/project143/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|assets|uploads|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
Home Page: Login Page with index.php included in URL: Login Page without index.php in the URL: