clean urls using .htaccess
- by Napster
I am trying to implement clean urls using .htaccess.
Basically after searching for some time I found out this code
RewriteRule latestnews/([a-zA-Z0-9]+)/$ http://thinkmovie.in/index.php/latestnews/?nid=$1 [L]
RewriteRule latestnews/([a-zA-Z0-9]+)$ http://thinkmovie.in/index.php/latestnews/?nid=$1 [L]
so when I try to access the following url
http://thinkmovie.in/index.php/latestnews/272
it redirects to
http://thinkmovie.in/index.php/latestnews?nid=272
But what I want is to retain the url in the browsers address bar as
http://thinkmovie.in/index.php/latestnews/272