Presently I got a url that is passed as such domain.tld/pages.php/parameter then the pages.php script simply looks at the $_SERVER["REQUEST_URL"] to make the necessary changes to the page.
I have looked up a number of explanations about how to remove the .php from the url, however all of them break the /parameter portion of the url and the page simply won't load. If I look up the closest facsimile it is "restful" urls, but they pass the parameters to another script like index.php or api.php which is not my goal. I have otherpage.php that should work all the same.
Appreciate any help.
You just have to use rewrite rules on
.htaccessto change the urls' direction and rules (in case of Apache webserver)..htaccessfile on the base website directory where your index.php or whatever files lies..htaccessfile:.phpextension, for example: if you have a file calledotherpage.phpand the previous working url path to it washttps://domain.tld/otherpage.phpthen now you could visit the same page with this urlhttps://domain.tld/otherpage.