I looking for a script that will detect the current url and amend the current url. Example:
find: http://example.php and replace with http://example-newstring.php
I can currently find the url replace the url using window.location but I'm stuck on how to replace the .php with new characters.
Any help greatly appreciated!!
window.locationin the tags, and also the example alters the domain which is not possible with history API).