Site icon Hip-Hop Website Design and Development

301 all old pages to new location

I have a blog that used to be located in a directory on my domain

mydomain.co.uk/Blog

I have now moved the blog to the root

mydomain.co.uk

How do i 301 all of my old pages to the new ones? I have around 500 pages so doing this manually will take forever.

So i want to do
mydomain.co.uk/Blog/page1 to mydomain.co.uk/page1

mydomain.co.uk/Blog/page2 to mydomain.co.uk/page2

mydomain.co.uk/Blog/page3 to mydomain.co.uk/page3

Thanks

Lea