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.
<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'])) );?>
<a href="http://localhost/bourseconseils/details.php?postid=<?php echo $row['article_id']; ?>" class="btn btn-primary">Lire plus →</a>
THE RESULT I AM LOOKING
HERE IS MY HTACCESS
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>