View Single Post
  #2   (View Single Post)  
Old 15th September 2019
PapaParrot's Avatar
PapaParrot PapaParrot is offline
parrot
 
Join Date: Jul 2015
Location: Durango, Mx.
Posts: 472
Default

I can't give the exact rule, off hand, but this gives a good example:
Quote:
from: https://man.openbsd.org/httpd.conf
Code:
The request can also be rewritten with the request rewrite directive:

server "example.com" {
	listen on * port 80
	location match "/old/(.*)" {
		request rewrite "/new/%1"
	}
So my guess is yours would be something like:
Code:
location match "/http://localhost/node/1/(.*)" {
		request rewrite "/http://localhost/index.php/node/1/%1"
	}
There is additional examples here: https://undeadly.org/cgi?action=arti...20180621064643
Maybe it will take some trial and error attempts on your system, and that is why I can not say exactly, I would have to try it, and see, maybe later when I have more time I can test it.
__________________
My best friends are parrots
Reply With Quote