Redirecting Pages and Files with no extension to file/pages with an extension with .htaccess

After hours of searching unable to find the answer anywhere I finally figured it out! I needed to 301 redirect files or pages like: http://www.domain.com/directory/directory2/pagename to http://www.domain.com/directory/directory2/pagename.php (or .htm etc.) Since most of files already had the .htm extension, mod-rewrite was looping itself making the redirect impossible. I only had about 100 pages that didn’t[…]