I have thousands of web files(*.php, *.htm, *.html, etc) that contain an absolute path(http://site.com/sites/etc). I need to scan a directory and all subdirectories for the various file types and within those files, modify my absolute path to a relative one of my choosing and then leave the rest of the file as is. It must not change the path of any other absolute URLs though.
I've checked the similar questions already posted on the matter but none seem to address this directly. Any suggestions? Thanks!