in apache .htaccess file, i’ve write,
RewriteRule ^animals$ index.php?type=animals
it redirects http://localhost/animals to http://localhost/index.php?type=animals
and when the url typed as http://localhost/animals/ then the error occurs,
file not found.
what is the correct syntax to do the both http://localhost/animals and http://localhost/animals/ for redirecting to http://localhost/index.php?type=animals
that is done with setthing this rule, if the base is specified then all links get the base path