This is my .htaccess file:
RewriteEngine On
RewriteBase /mydomainname.com/
RewriteCond $1 !^(index\.php|images|assets|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
This code is working on one hosting while not on the other. I tried by running this code on the both the hosting
1)on one hosting I have my code works without adding index.php in the url i.e
www.mydomainname.com/contrlerName/functionname
2)On the other domain I need to add index.php in the url like :
www.mydomainname.com/index.php/contrlerName/functionname
what can be the problem?
Thanks in advance!