0

I would like this:

post/view?id=619789185256734055595662

to become this:

post/view/619789185256734055595662

But nothing I've tried with .htaccess has worked so far. How can I do this?

helvete
  • 2,455
  • 13
  • 33
  • 37
owenasteel
  • 69
  • 8
  • 1
    Looks like you're calling your URL w/ GET parameters, no? Is there a specific reason you're not just calling the URL with the parameter as part of it? E.g. `window.location.href = myUrl + "/" + myId;`? Also, please add what you've tried up until now. – SimonC Apr 17 '19 at 09:49

1 Answers1

1

You can do this by URL Rewriting in PHP. This is a duplicate question. Solution is here