Ok, I am really not a tech - however, here is something i put together, remember to updatedb first.
Some edits will have to be done for you case

locate *.php | sed 's/\/var\/www\/html/www.domain.com/'
or do
locate *.php | sed 's/\/var\/www\/html/www.domain.com/' >> file.txt
I really wanted to use a recursive LS but couldn't figure out a way to save my life to pull from ls -RD lol