Mobile app version of vmapp.org
Login or Join
Smith883

: Rewrite rule for clean URLs using .htaccess isn't working for ID after "latestnews" I am trying to implement clean URLs using .htaccess. Basically after searching for some time I found out this

@Smith883

Posted in: #CleanUrls #Htaccess

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]+)/$ thinkmovie.in/index.php/latestnews/?nid= [L]
RewriteRule latestnews/([a-zA-Z0-9]+)$ thinkmovie.in/index.php/latestnews/?nid= [L]


so when I try to access the following URL
thinkmovie.in/index.php/latestnews/272

it redirects to
thinkmovie.in/index.php/latestnews?nid=272

But what I want is to retain the URL in the browsers address bar as
thinkmovie.in/index.php/latestnews/272

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Smith883

0 Comments

Sorted by latest first Latest Oldest Best

Back to top | Use Dark Theme