I need to 301 redirect all pages from an old website to our main website. The old website uses a custom CMS system and we do not have access to the server / not possible to configure redirects here.
My idea is to point the old website domain to our webserver and setup 301 redirects in the .htaccess file like this:
Redirect 301 /oldpage.html http://www.example.com/newpage.html
My question is, do I need to have actual html files in the site for the 301 redirects to work? Also, is my above code sound?