0

I have tried severally for couple of hours but not getting it right. I am new to htaccess and all i'm googling seem not to help. How do I rewrite this url

http://localhost/appgat/profile/?service-provider=Tech&job=29

to something like this

http://localhost/appgat/service-provider/tech/29

I have tried several tricks that I don't even understand their meaning including this last one RewriteRule ^service-provider/([0-9a-z]+) profile/service-provider=$1&job=$2 [NC,L]

  • Why don't you use a micro framework like [Slim](https://www.slimframework.com/)? – odan Jan 31 '18 at 08:39
  • Thanks for your suggestion @DanielO. But that isn't going to solve my instant problem now. I will read more about SlimPHP later. Thanks – Generah Ben Jan 31 '18 at 08:43
  • Ok then maybe read my article about this topic. I hope it will help you. https://gist.github.com/odan/e791bb29e2a1eab4ac6f2be4bbf86e12 – odan Jan 31 '18 at 08:46
  • 1
    First of all, are you doing it the right way around? You don't rewrite the first to the second, it's the other way around. Read the duplicate and update your question with a lot more detail if you still need help. – deceze Jan 31 '18 at 08:52

0 Answers0