Im developing a php frame work and I am new to .htaccess rules. So I need to redirect url using .htaccess. Url is
http://localhost/rinocabs/index.php?/Galar
When in doubt, go the Codeigniter route!
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
Basically there is no reason to include what's going to be the domain portion of your url in the rewrite rule and condition, and your condition is looking funky. Looking at the codeigniter example above, all we need to do in our expression is: find the index.php segment in the path, and get rid of it, and rewrite to include it. Your expression assumes the path will always be the same...if that makes sense.