Get path as placholder without trailing /


(Wqrld) #1

Is it possible to get the url without a trailing / ?
currently using to {path} {path}/ /{dir}.php but that gives problems:
HTTP/2.0 Request: GET /terms-of-service/ to /terms-of-service/.php (likely because the browser is automatically adding a trailing slash (I just want to hide the .php or .html)


(Matthew Fay) #2

I don’t think you can manipulate the placeholder in that way.

Have you considered moving /terms-of-service.php to /terms-of-service/index.php?