I have the following php variable
$currentUrl
This php variable returns me the current page of the url. For example: it returns:
http://example.com/test-category/page.html?_ore=norn&___frore=norian
What php code I can use, it will take this URL link and delete everything after " .html " and return me a link to a clean URL, for example:
http://example.com/test-category/page.html
This will be returned in the new variable $ clean_currentUrl
source share