Get path as placholder without trailing /

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)

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?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.