How to make my links url rewrite in htaccess work?

Hi Everybody,

I am working a personal blog and i am trying to make links rewrtie in htaccess, but having difficult time, i have googled but the solution propose don’t work for me, so i am posting to have some help on this. I am testing the links rewrite on localserver wamp. I want to rewrite to 3 majors links but only got one worked. The others Two, can’t sort out, here my code.

HEADER.HTML :
<a class="nav-link" href="http://localhost/bourseconseils/browse.php?categorie=<?php echo urlencode($row['cat_name']);?>"> <?php echo htmlout(strtoupper(str_replace('_',' ', $row['cat_name'])) );?>

POSTS.HTML
<a href="http://localhost/bourseconseils/details.php?postid=<?php echo $row['article_id']; ?>" class="btn btn-primary">Lire plus &rarr;</a>

THE RESULT I AM LOOKING
FROM : browse.php?categorie=test to browse/test
FROM : details.php?postid=1 to details/1

HERE IS MY HTACCESS

Options -MultiViews
RewriteEngine on

RewriteRule ^browse/([a-zA-Z0-9-=_?]+)/?$ browse.php?categorie=$1 [L] 

#FOR ADMIN
RewriteRule ^admin/homeadmin?$ admin/homeadmin.html

RewriteRule ^details/(.*)$ /details.php?postid=$1
</IfModule>
Sponsor our Newsletter | Privacy Policy | Terms of Service