0

How to use the .htaccess to change the url
https://example/userdetail.php?pn=1&order=user_id&sort=ASC&search=null
to
https://example/userdetail/1/user_id/ASC/null/


shmnff
  • 718
  • 10
  • 27
Ashley
  • 11
  • 1

1 Answers1

1

If you hava MVC then you can used like that:

  Url: 
     <a href="/controllerName/1/user_id/ASC/null">

Make Route, an then

  Controller:

     class controllerName extends Controller {

        public function index($ph, $order, $sort, $search){

          }
     }
Imranmadbar
  • 2,346
  • 1
  • 9
  • 20