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
  • 647
  • 2
  • 15
  • 31
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
  • 4,681
  • 3
  • 17
  • 30