I'm new to using 301 redirects so I don't know if this is possible, but I want to take part of the old url and use it in the new url using wildcards.
example.com/folder/file.php to
example.com/newfolder/newfolder/file-keyword/
Where the file name is a wildcard and the name of the file (without the .php) is inserted into the new url example.com/newfolder/newfolder/{insert the file name here}-keyword/