I have the following .htaccess command for redirection of php pages
RewriteRule ^(.*)$ index.php/$1 [L]
This code is working in localhost.It is not working in web server. But when code is slightly modified it works in server.
RewriteRule ^(.*)$ index.php?/$1 [L]
Why is this happening?