clean urls using .htaccess
Posted
by
Napster
on Pro Webmasters
See other posts from Pro Webmasters
or by Napster
Published on 2011-06-21T01:01:36Z
Indexed on
2011/06/21
8:31 UTC
Read the original article
Hit count: 282
htaccess
|clean-urls
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
© Pro Webmasters or respective owner