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/
            Asked
            
        
        
            Active
            
        
            Viewed 44 times
        
    0
            
            
        - 
                    Is that url the only rewrite needed? – norcal johnny Mar 06 '18 at 03:53
1 Answers
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
 
    