Website redirect using workers

How can I use workers to redirect the following

www.domain.com/* to www.domain.com/en/* I want to exclude though certain files and folders